note 34168 deleted from function.file-get-contents by didou
| From: | didou@php.net | Date: | Thu, 18 Sep 2003 14:04:52 +0000 |
| Subject: | note 34168 deleted from function.file-get-contents by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56688@lists.php.net to get a copy of this message | ||
Note Submitter: denzo@xboxcovers.net
----
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.