note 34168 added to function.file-get-contents

From: Date: Thu, 17 Jul 2003 13:41:00 +0000
Subject: note 34168 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-52276@lists.php.net to get a copy of this message
For earlier php versions you can also easily implode a file() array. Code: $myfile = implode(file("http://www.myfile.com/file.txt")); But if the file doesn't exists it will give two errors, one that the file doesn't exists and two that implode has bad arguments to implode. Although i do find it an easy way. ---- 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+34168 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34168&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34168&report=yes

« previous php.notes (#52276) next »