Re: Finally, PDF Header for PDF stuffs that work....

From: Date: Thu, 16 Oct 2003 18:42:49 +0000
Subject: Re: Finally, PDF Header for PDF stuffs that work....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166333@lists.php.net to get a copy of this message
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)... Questions about IE problem is something you would have to ask M$ on why it is using hte faulty IE. Scott F. "Curt Zirzow" <php-general@zirzow.dyndns.org> wrote in message news:20031014213342.GS51024@bagend.shire... > * Thus wrote Scott Fletcher (scott@abcoa.com): > > //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 = 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 sending it to the client doesn't make much sense. > > > > > //Required, to keep IE from running into problems > > //when opening the file while downloading or downloading... > > //(IE been acting strange...) > > exit(); > > This also doesn't effect IE. > > > Curt > -- > "My PHP key is worn out" > > PHP List stats since 1997: > http://zirzow.dyndns.org/html/mlists/

« previous php.general (#166333) next »