note 34862 added to function.file-get-contents

From: Date: Fri, 08 Aug 2003 20:53:14 +0000
Subject: note 34862 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-53664@lists.php.net to get a copy of this message
If your using an earlier version of PHP (< 4.3.0) you could use this function to get the same result (kinda like the one above only a little different) function file_get_contents($filename) { if (!file_exist($filename)) die('File :'.$filename.' does not exist!'); return implode("", file($filename)); } Hope this helps. Yours, Ken Saggy. ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34862 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34862&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34862&report=yes

« previous php.notes (#53664) next »