note 43544 added to function.readfile

From: Date: Thu, 24 Jun 2004 22:36:42 +0000
Subject: note 43544 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-71621@lists.php.net to get a copy of this message
I am using that code and IE 6.0.2800 can not show pdf file. This code must pick up th epdf file and show it with php file. But IE doesnt recognize such output. Any one has such a problem? $filename = "../files/file.pdf"; $len = filesize($filename); header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="'.$filename.'"'); header('Content-Length: '.$len); readfile($filename); ---- Manual Page -- http://www.php.net/manual/en/function.readfile.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43544 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43544&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43544&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71621) next »