Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Curt Zirzow
* Thus wrote John Herren ([EMAIL PROTECTED]): > If I call a pdf file directly, the Acrobat plugin begins to display the > file almost immediately. Here is the reponse header for calling the file > directly: > Last-Modified: Thu, 16 Oct 2003 17:08:17 GMT > ETag: "94174-341fcb-3f8ed081" > Conten

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
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(us

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Curt Zirzow
* 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

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
OK, here's a different problem. If I call a pdf file directly, the Acrobat plugin begins to display the file almost immediately. Here is the reponse header for calling the file directly: HTTP/1.1 200 OK Date: Thu, 16 Oct 2003 20:41:28 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Scott Fletcher
IE just don't work depending on some of the IE's version because of the IE's countless bugs. So, a different method of controlling the data output to the browser is needed. That's when I use the fopen() stuffs and it solve the problem. It is evident by reduced customer's calling tech support (us

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Curt Zirzow
* Thus wrote Mohamed Lrhazi ([EMAIL PROTECTED]): > On Tue, 2003-10-14 at 17:33, Curt Zirzow wrote: > > > > > > //use fopen() instead of readfile... > > > $fp = fopen($filepath, 'rb'); > > > $pdf_buffer = fread($fp, $filesize); > > > fclose ($fp); > > > > > > print $pdf_buffer;

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Mohamed Lrhazi
On Tue, 2003-10-14 at 17:33, Curt Zirzow wrote: > > > > //use fopen() instead of readfile... > > $fp = fopen($filepath, 'rb'); > > $pdf_buffer = fread($fp, $filesize); > > fclose ($fp); > > > > print $pdf_buffer; > > Loading the whole file in memory and not doing anything wit

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > //Can't use readfile() due to poor controlling of the file download. > //(IE have this problems)... > //readfile($filepath); readfile has no effect on how IE handles downloads. > > //use fopen() instead of readfile... > $fp =

[PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-14 Thread Scott Fletcher
Finally got some PHP header to force IE to display the PDF document right from the file from the server. Due to most of IE bugs, this script will help. It can be either getting a file from the webserver as this script is or you can change the PHP header to use the attachment instead. --snip-- -