note 56124 deleted from function.header by victor

From: Date: Wed, 24 Aug 2005 11:59:45 +0000
Subject: note 56124 deleted from function.header by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94123@lists.php.net to get a copy of this message
Note Submitter: marcus dot uy at virtualthinking dot com ---- Dear Ladies and Germs, This works for both IE and Firefox using sessions on a windows server (apache 1.3.29,php 4.3.8) and linux server (apache 2.0+ and php 5.0+): //You will need to substitute in your own binary file read algo or function here $temp = read_file ("/path/to/your_file.pdf"); header("ETag: ".md5(date("YmdHis"))); header("Accept-Ranges: bytes"); header("Content-type: application/pdf"); header("Content-length: ".strlen($temp)); header("Content-Disposition: inline; filename=".$your_file_name); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Pragma: public"); echo ($temp);

« previous php.notes (#94123) next »