OK, I checked things out, and based on some private emails, and pointers, from Francisco M. Marzoa [EMAIL PROTECTED], I have now

replaced:
readfile($name);
with:
while(!feof($fp)) {
$buf = fread($fp, 4096);
echo $buf;
$bytesSent+=strlen($buf); /* We know how many bytes were sent to the user */
}


I restarted apache (to free all the memory), and we will see how it goes overnight.

-Robin

BTW - output buffering is turned OFF. ob_get_level() returns 0, but both functions readfile and fpassthru seem to allocate memory (and never release) the size of the file.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to