note 76115 added to function.header

From: Date: Sun, 01 Jul 2007 04:27:15 +0000
Subject: note 76115 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-128125@lists.php.net to get a copy of this message
This code works perfectly on explorer 6. It displays NOTHING on firefox 2. I tried every combination in this page and I always get the same thing in firefox. I am running on iis5, windows xp, php 5.2.3 Why firefox is not capable of displaying the pdf and explorer has no problems??? $filename='test.pdf'; $len = filesize($filename); header('Content-type: application/pdf'); header('Content-Length: $len'); header('Content-Disposition: inline; filename="test.pdf"'); readfile($filename); ---- Server IP: 64.71.164.2 Probable Submitter: 70.45.44.24 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/76115 Del: integrated -- https://master.php.net/note/delete/76115/integrated Del: useless -- https://master.php.net/note/delete/76115/useless Del: bad code -- https://master.php.net/note/delete/76115/bad+code Del: spam -- https://master.php.net/note/delete/76115/spam Del: non-english -- https://master.php.net/note/delete/76115/non-english Del: in docs -- https://master.php.net/note/delete/76115/in+docs Del: other reasons-- https://master.php.net/note/delete/76115 Reject -- https://master.php.net/note/reject/76115 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128125) next »