RE: [PHP] PDF reading via IE5.5

From: Date: Wed, 21 Mar 2001 08:35:05 +0000
Subject: RE: [PHP] PDF reading via IE5.5
Groups: php.general 
Request: Send a blank email to php-general+get-44902@lists.php.net to get a copy of this message
Try, header("Content-type: application/pdf"); header("Location:$filename"); -Stewart -----Original Message----- From: Dennis Moore [mailto:dennis@dkmoore.com] Sent: 21 March 2001 04:14 To: php-general@lists.php.net Subject: [PHP] PDF reading via IE5.5 I have searched long and hard to resolve this issue. I've tried many variations for the header tag. However, I cannot seem to get it to work with IE5.5. I am trying to read an Acrobat created PDF file that I uploaded into my MySQL database. The problem occurs when I print the data via IE5.5. <?php header("Content-type: application/pdf"); header("Content-Disposition: attachment; filename=$name"); print $data; ?> All I get is echoing of the binary to the browser. Any ideas or suggestions? /dkm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#44902) next »