PDFlib on PHP4

From: Date: Wed, 08 Aug 2001 23:25:32 +0000
Subject: PDFlib on PHP4
Groups: php.windows 
Request: Send a blank email to php-windows+get-8724@lists.php.net to get a copy of this message
I'm getting this message <snip> Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2) in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 3 Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\test\pdftest.php:2) in c:\program files\apache group\apache\htdocs\test\pdftest.php on line 26 </snip> with the following code. <snip> <?php $len = filesize($filename); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=foo.pdf"); readfile($filename); ?> </snip> The server is Apache for Win32. Any idea on how to fix it? Adam

« previous php.windows (#8724) next »