Re: file_get_contents source??
| From: | CC Zona | Date: | Fri, 19 Apr 2002 17:56:50 +0000 |
| Subject: | Re: file_get_contents source?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93741@lists.php.net to get a copy of this message | ||
In article <20020419174813.63086.qmail@pb1.pair.com>,
grag@libero.it (Giovanni Lenzi) wrote:
> file_get_contents function is supposed to return the contents of a file in a
> binary safe manner. I tried it on two different servers which has different
> versions of APACHE+PHP but it still not works.
> The server give me this response:
>
> Fatal error: Call to undefined function: file_get_contents() in
> /usr/home/s/a/sauzer/public_html/sfidario/readstreams/1.0/warsupcoming.php
> on line 17
From <http://php.net/file-get-contents>:
"file_get_contents (PHP 4 CVS
only)". That's why it's not in your version. Reading further, it says
"Identical to readfile(), except that file_get_contents() returns the file
in a string." So if don't need to do additional manipulation of the
contents, there is one viable alternative. The user annotations suggest
two additional alternatives.
--
CC