note 34168 modified in function.file-get-contents by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 14:47:52 +0000 |
| Subject: | note 34168 modified in function.file-get-contents by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56153@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"),
"\n");
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.
--was--
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.
http://www.php.net/manual/en/function.file-get-contents.php