[PHP] Re: Fwrite() vs file_put_contents()

2009-03-03 Thread RottenEye
I Clancy, Have you tried to convert your content to an .ini file? I heard that the php function "parse_ini_file" is very fast for reading this kind of files, although for writing you have to use some sort of php class, that can be slower than your method. Depends what you trying to do I guess

Re: [PHP] Which file "Included" me?

2009-02-22 Thread RottenEye
But we could use rawurlencode($_SERVER['PHP_SELF']), no? João Michael A. Peters wrote: Nisse Engström wrote: On Wed, 18 Feb 2009 10:37:53 -0800, "Michael A. Peters" wrote: http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the inpu

[PHP] Re: DOMDocument help

2009-02-12 Thread RottenEye
is a string that has some bold words'; $doc = new DOMDocument; $doc->loadHTML($string); $items = $doc->getElementsByTagName('b'); for( $i = 0; $i < $items->length; $i++ ){ echo $items->item($i)->nodeValue . "\n"; } ?> ""Michael A. Peters"" wrote in message news:4