Posted by howa on 11/07/06 08:28
are there any advantage in replacing all fread() operations with
file_get_contents() ?
i.e.
file_get_contents("/usr/local/something.txt")
VS
$filename = "/usr/local/something.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
is that file_get_contents() is more efficient?
thanks.
Navigation:
[Reply to this message]
|