* 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 -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php