note 102137 added to function.readfile

From: Date: Fri, 28 Jan 2011 15:22:11 +0000
Subject: note 102137 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-176479@lists.php.net to get a copy of this message
It should be noted that in the example: header('Content-Length: ' . filesize($file)); $file should really be the full path to the file. Otherwise content length will not always be set, often resulting in the dreaded "0 byte file" problem. ---- Server IP: 69.147.83.197 Probable Submitter: 65.219.232.104 ---- Manual Page -- http://www.php.net/manual/en/function.readfile.php Edit -- https://master.php.net/note/edit/102137 Del: integrated -- https://master.php.net/note/delete/102137/integrated Del: useless -- https://master.php.net/note/delete/102137/useless Del: bad code -- https://master.php.net/note/delete/102137/bad+code Del: spam -- https://master.php.net/note/delete/102137/spam Del: non-english -- https://master.php.net/note/delete/102137/non-english Del: in docs -- https://master.php.net/note/delete/102137/in+docs Del: other reasons-- https://master.php.net/note/delete/102137 Reject -- https://master.php.net/note/reject/102137 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176479) next »