when is a PDF not a PDF?

From: Date: Sat, 06 Mar 2004 10:10:32 +0000
Subject: when is a PDF not a PDF?
Groups: php.general 
Request: Send a blank email to php-general+get-179640@lists.php.net to get a copy of this message
The simple example from http://www.php.net/pdf (hard-wired to paper.pdf) just displayed the pdf data as a dump. I can ftp the file and it's OK. My hard-wired version is shown below. <?php $len = filesize("paper.pdf"); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=paper.pdf"); readfile("paper.pdf"); ?> // Thanks, // Rick

« previous php.general (#179640) next »