Curt Zirzow wrote:
* Thus wrote John Herren ([EMAIL PROTECTED]):
header("Content-Type: application/pdf");
header("Accept-Ranges: bytes");
header("Content-Length: ".filesize($thefile));
readfile($thefile);
Can anybody tell me why the browser is waiting for the entire file
before it's displayed(using php)? I don't think the average user will
have the patience to stare at a blank browser waiting for the file.
This is a pdf issue I believe. There is an option in the PDF called
'Fast Web View', if this is set adobe doesn't need to read the
whole thing before starting to view.
Check the pdf's 'Document properties' and You'll see if the option
is set or not. If not, resave the document enabling that option.
Acrobat 5 has a nice little batch thing to convert serveral
docuements into this mode.
HTH,
Curt
I appreciate that advice. And Fast Web View is disabled. But I still
don't understand why calling the file directly gives immediate output,
but if I generate the headers and readfile() the file to the browser
(same exact file) it waits to get the whole file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php