Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dbeezzz
  • Order by date
  1. dbeezzz

    Accessing preg_split arrays ... ?

    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...
  2. dbeezzz

    Accessing preg_split arrays ... ?

    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("/<!--...
  3. dbeezzz

    Non-printable character to help me parse a html sheet ... ?

    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...
  4. dbeezzz

    Code explanation ...

    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...
  5. dbeezzz

    Dynamic graph software

    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 ?
  6. dbeezzz

    Link overloading ...

    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...
  7. dbeezzz

    Outputting htmlspecialchars ...

    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...
  8. dbeezzz

    Outputting htmlspecialchars ...

    thanks dan, I should have been clearer ... my image tags are output like this <img src=&quot;Templates/Classic/images/line.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; height=&quot;7&quot; width=&quot;202&quot;> <br> ... the width/height atrributes are fine, it's just that the...
  9. dbeezzz

    Replacing a file with code ...

    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...
  10. dbeezzz

    Empty a file ...

    Thanks Itshim, I should have noticed, I thought the fopen( a ) referred was a reference to 'all'.
  11. dbeezzz

    Outputting htmlspecialchars ...

    I'm outputting a page of html as a value for in an <input tag <div><input type="hidden" id="editor1" name="editor1" value= "&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt; &lt;html&gt; ... " I need to serve up the page as htmlentities in order to fit it into...
  12. dbeezzz

    Replacing a file with code ...

    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...
  13. dbeezzz

    using php, can I make a web page editable ??

    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...
  14. dbeezzz

    Empty a file ...

    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...
  15. dbeezzz

    Compiler security issues ...

    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...
  16. dbeezzz

    Fedora Core 2 rpm's ...

    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.
  17. dbeezzz

    Fedora Core 2 rpm's ...

    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...
  18. dbeezzz

    Compiler security issues ...

    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...
  19. dbeezzz

    Compiler security issues ...

    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...
  20. dbeezzz

    Dedicated server ...

    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...

Part and Inventory Search

Back
Top