note 76472 added to function.readfile

From: Date: Tue, 17 Jul 2007 13:00:00 +0000
Subject: note 76472 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-128651@lists.php.net to get a copy of this message
In response to "grey - greywyvern - com": If you know the target _can't_ be a remote file (e.g. prefixing it with a directory), you should use include instead. If the user manages to set the target to some kinda config-file (configuration.php in Joomla!), he will get a blank page - unless readfile() is used. Using include will just behave as a normal request (no output). For remote files however use readfile(). ---- Server IP: 212.124.37.9 Probable Submitter: 172.174.125.37 ---- Manual Page -- http://www.php.net/manual/en/function.readfile.php Edit -- https://master.php.net/note/edit/76472 Del: integrated -- https://master.php.net/note/delete/76472/integrated Del: useless -- https://master.php.net/note/delete/76472/useless Del: bad code -- https://master.php.net/note/delete/76472/bad+code Del: spam -- https://master.php.net/note/delete/76472/spam Del: non-english -- https://master.php.net/note/delete/76472/non-english Del: in docs -- https://master.php.net/note/delete/76472/in+docs Del: other reasons-- https://master.php.net/note/delete/76472 Reject -- https://master.php.net/note/reject/76472 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128651) next »