Cool, I can access the array as $start[1][1].
I was also looking at thenewa2x's post below, and he's encountering a similar problem. I'll have a further look at his solution and post back with any problems.
I'm not really sure which method would be more efficient. I know regex's are hard on...
So I'm trying to take out all the text in my html page between the elements of <!-- START_CAPTURE_1 --> and <!-- END_CAPTURE_1 -->
So far I'm using a preg_split.
$start = preg_split("/<!-- START_CAPTURE_1 -->/", $html_page_text, -1, PREG_SPLIT_OFFSET_CAPTURE);
$end = preg_split("/<!--...
So I have some html sheets done in template format, which I'll then parse and add my mysql data to. The thing is though, when the whole sheet gets returned to me in a form, I want to be able to split it down into sections and store it independently.
I came up with the idea of using unused...
So I came across this piece of code to-day. I'm reasonably familiar with variable variables but I still don't really get this.
It's used to enumerate the value element of a submitted form's name-value pair. So that if your name-value pair was hidden=submit. Then you'd end up with a variable...
What's the best way to go if you want to create graphs on-the-fly by pulling data out of a database? PHP would be the most handy, but I've heard some good things about python.
What's the most efficient method for dynamic graphs ?
I want the links on my page to be relevant to whatever page I'm using at that minute eg.
<a href='/demo.php?style=classic&mode=coverletter'>
<a href='/test.php?style=classic&mode=coverletter'>
I just have one template sheet, so I just want to output something like this
<a...
Ya thanks guys,
It was a bit strange and to be honest I still am not fully sure of exactly what's going on. Basically I'm combining a php templating system with the FCKEditor.
So my html is going through a couple of loops and then is being output to the editor page. I've got it sorted now...
thanks dan,
I should have been clearer ... my image tags are output like this
<img src="Templates/Classic/images/line.jpg" alt="" border="0" height="7"
width="202">
<br>
... the width/height atrributes are fine, it's just that the...
Hi Itshim,
I'm using the opening and closing file technique at the moment, but that's just to check the functionality. I wouldn't feel right putting a file r/w into the code for every execution.
The second object is prepackaged, but so I'd prefer not to touch it if there was some magic way to...
I'm outputting a page of html as a value for in an <input tag
<div><input type="hidden" id="editor1" name="editor1" value=
"<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> ... "
I need to serve up the page as htmlentities in order to fit it into...
I'm opening a file first, then parsing the contents with my_object function, and then I'd like to feed that output into another object.
Unfortunately though, the second object only accepts files instead of code on-the-fly as it were. Rather than start messing around with my template object...
Why don't you just try using some of the firefox extensions to change the pages all you want and then save them over the originals ?
Check out these extensions for the firefox web browser...
1)web-developer
2)platypus
3)greasemonkey
... to be honest, I'd reckon that the task of coding the...
Is there any way to empty a file in php. Bascially I open a file and read in some values, then I feed the file into another function. I want to empty the file again for the next time.
There doesn't seem to be much functionality to fwrite() ? It doesn't give me the option of writing over the...
yes, but I think it may be possible to copy over a root suid program with a hacker program and then run it as root.
Also, the more likely possibility I'd imagine is that if the attacker can place his program ahead of the root suid program in PATH. And then have the system run his.
I'm not...
Thanks daver,
I had tried
yum provides *apache_devel*
yum install *apache_devel*
yum search apache_devel
and variations on the theme but no luck I'm afraid.
However I did discover a nice legacy repository at www.fedoralegacy.org if anyone is interested.
I'm setting up a fedora core 2 box at the moment and I'm having some difficulties with apache. Where is it that I can find the apache-devel rpm ?
I need to use the apxs program to install the mod_security manual. But apparently it's not in the apache rpm.
I've looked around for guides to FC2...
Thanks zealand,
But in response to your first question. Wouldn't a regular user be able to exchange his compiled program with an suid program, and thus run as root ?
I had heard that leaving a compiler on your system was a bad idea. But it really doesn't seem to matter much if an intruder can...
What exactly are the security issues with regards to leaving a compiler on my system ? I'm installing an rpm of gcc at the moment. And I'm wondering what I should do with it when I'm finished. Does a
chown root
chmod 700
... suffice ? Can't the intruder at user level just download and install...
I'm going to try to run an webhosting site on it's own dedicated server with goDaddy. The deal seems to be a pretty good one ... 1GB RAM, 500GB BW, 120GB hd, celeron 2.0GHz with Fedora Core 2 for $90/month plus extra for ftp backups and ssl cert.
What I'd like to do is to sell domains names as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.