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
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)
* 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
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
* 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
* 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 =
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 with it
before
* 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;
Loading the
8 matches
Mail list logo