Hi,
I wonder if there's a better way (more effective, less resource consuming )
to pass a file to a user than the ones I put below.
This might be quite large files more than 100 mb. Mind this might be all
kind of files (binary and others) and must preserve the files state.
//Sending approriate headers....
//snip
------------------------------------------------------Is this better,
faster less consuming
$fd=fopen($completeFilePath,'r');
fpassthru($fd);
exit;
--------------------------------------------------------than this? Seems
like it, or is there yet another, faster, better way?
$data = readfile($completeFilePath);
$i=0;
while ($data[$i] != ""){
echo $data[$i];
$i++;
}
exit;
TIA
/ Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php