Hi,
I was wondering what's the fastest way to
get a string from a given file.
I know 2 ways :
return implode("",file("$file"));
and (as seen on php.net) :
$filename = "/usr/local/something.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
What's the fastest way? Anyone know an other
way?
Thanks for your help.
Mike