PHP / Apache Issue

Cliff Meyers cliff at cliffmeyers.com
Wed Sep 1 08:42:39 EDT 2004


Justin,


This likely has more to do with the browser you're running than anything
server-side.  What operating system / web browser / version of Adobe
Reader are you using?  You could also try changing the content-disposition
to "attachment" instead of "inline"; the former should cause the PDF
to be opened by Acrobat Reader itself, whereas the latter will open in
the browser via the plugin.  I know Acrobat Reader 5.0 for Windows had
some strange bugs in it.


-Cliff 



On Tue, 31 Aug 2004 06:58:24 -0700 Justin Bennett <Justin.Bennett at dynabrade.com>
wrote:
>I have redhat 2.1ES machine running Apache and PHP. I have a PHP
>script 
>that generates a PDF. Every third or fourth time I run the script
>I 
>don't get the PDF instead I get the headers and asci equiv of the
>PDF in 
>my browser. I hit reload and the PDF comes up fine. Any idea why
>this 
>might happen, possibly config error?
>
>
>HTTP/1.1 200 OK
>Date: Tue, 31 Aug 2004 14:19:30 GMT
>Server: Apache/1.3.27 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b
>DAV/1.0.3 PHP/4.3.4 mod_perl/1.26
>X-Powered-By: PHP/4.3.4
>Content-Length: 10053
>Content-disposition: inline; filename=doc.pdf
>Keep-Alive: timeout=15, max=99
>Connection: Keep-Alive
>Content-Type: application/pdf
>
>%PDF-1.3
>3 0 obj
><</Type /Page 
><SNIP>
>
>-- 
>Justin Bennett
>Network Administrator
>Dynabrade, Inc.
>8989 Sheridan Dr.
>Clarence, NY 14031



More information about the nflug mailing list