Doesn't this do that?

$FilePointer=fopen($FileLocation,"r");
        $_MyString.=fread($FilePointer,filesize ($FileLocation));
fclose($FilePointer);

Althought I guess this could suck memory pretty hard on large files, and you
guys want to get away from that...

-Brian


> Blah...  I see this a lot.  We should probably just relent and make a
> function that reads an entire file into a string.
Yes, please do :)




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to