note 95004 added to function.readfile

From: Date: Tue, 08 Dec 2009 10:09:05 +0000
Subject: note 95004 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-163709@lists.php.net to get a copy of this message
If you are trying the example given in the manual and are getting invalid files, then it is probably because your server is set to display notices and ob_clean() is outputting one at the start of the file, corrupting it. As a starting point, you can try turning off all error reporting for this script by using error_reporting(0) at the start of your PHP file... <?php error_reporting(0); // rest of example goes here ?> ---- Server IP: 69.147.83.197 Probable Submitter: 78.32.213.97 ---- Manual Page -- http://www.php.net/manual/en/function.readfile.php Edit -- https://master.php.net/note/edit/95004 Del: integrated -- https://master.php.net/note/delete/95004/integrated Del: useless -- https://master.php.net/note/delete/95004/useless Del: bad code -- https://master.php.net/note/delete/95004/bad+code Del: spam -- https://master.php.net/note/delete/95004/spam Del: non-english -- https://master.php.net/note/delete/95004/non-english Del: in docs -- https://master.php.net/note/delete/95004/in+docs Del: other reasons-- https://master.php.net/note/delete/95004 Reject -- https://master.php.net/note/reject/95004 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163709) next »