PHP / Apache Issue

Justin Bennett Justin.Bennett at dynabrade.com
Wed Sep 1 08:54:50 EDT 2004


Its mozilla 1.7.1 and reader 6.0. I have two copies of this program one 
on a application server here (buffalo), and one in europe (pretty much 
same config on both machines). It's a sales report the runs against an 
oracle database. The same program works fine on one application server, 
but on the european server was giving me this greif, it was doing if for 
more than a PDF too, It was doing it for regular pages. That's why I 
pretty much ruled out anything on the client end, I eventually 
regenerated  httpd.conf and restarted apache and it seems to work fine 
now. 

Thanks for the reply!

Justin



Justin Bennett
Network Administrator
Dynabrade, Inc.
8989 Sheridan Dr.
Clarence, NY 14031
 



Cliff Meyers wrote:

>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