note 84564 added to function.file-get-contents

From: Date: Sat, 19 Jul 2008 00:17:21 +0000
Subject: note 84564 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-141672@lists.php.net to get a copy of this message
if( false == ($str=file_get_contents( '../relative_path/test.txt' ))) echo "Could not read file."; else echo "File contents: $str"; # Note: if the file cannot be opened then file_get_contents will attempt to warn the following: # Warning: file_get_contents(filename): failed to open stream http://www.codesplunk.com/nr/questions/php1.html ---- Server IP: 208.69.120.35 Probable Submitter: 63.81.0.20 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/84564 Del: integrated -- https://master.php.net/note/delete/84564/integrated Del: useless -- https://master.php.net/note/delete/84564/useless Del: bad code -- https://master.php.net/note/delete/84564/bad+code Del: spam -- https://master.php.net/note/delete/84564/spam Del: non-english -- https://master.php.net/note/delete/84564/non-english Del: in docs -- https://master.php.net/note/delete/84564/in+docs Del: other reasons-- https://master.php.net/note/delete/84564 Reject -- https://master.php.net/note/reject/84564 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141672) next »