are there any advantage in replacing all fread() operations with
file_get_conten ts() ?
i.e.
file_get_conten ts("/usr/local/something.txt")
VS
$filename = "/usr/local/something.txt";
$handle = fopen($filename , "r");
$contents = fread($handle, filesize($filen ame));
fclose($handle) ;
is that file_get_conten ts() is more efficient?
thanks.
file_get_conten ts() ?
i.e.
file_get_conten ts("/usr/local/something.txt")
VS
$filename = "/usr/local/something.txt";
$handle = fopen($filename , "r");
$contents = fread($handle, filesize($filen ame));
fclose($handle) ;
is that file_get_conten ts() is more efficient?
thanks.
Comment