note 64562 added to function.file-get-contents

From: Date: Tue, 18 Apr 2006 19:24:52 +0000
Subject: note 64562 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-108429@lists.php.net to get a copy of this message
Note that the following will return false (even though the file exists and can be opened) since the file is empty: > touch file.ext <?php if (!$content = file_get_contents('file.ext')) ... else ... ?> ---- Server IP: 129.16.214.50 Probable Submitter: 193.15.234.130 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- http://master.php.net/note/edit/64562 Del: integrated -- http://master.php.net/note/delete/64562/integrated Del: useless -- http://master.php.net/note/delete/64562/useless Del: bad code -- http://master.php.net/note/delete/64562/bad+code Del: spam -- http://master.php.net/note/delete/64562/spam Del: non-english -- http://master.php.net/note/delete/64562/non-english Del: in docs -- http://master.php.net/note/delete/64562/in+docs Del: other reasons-- http://master.php.net/note/delete/64562 Reject -- http://master.php.net/note/reject/64562 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108429) next »