Re: file_put_contents problem
| From: | Ralph Deffke | Date: | Mon, 14 Sep 2009 15:15:16 +0000 |
| Subject: | Re: file_put_contents problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298012@lists.php.net to get a copy of this message | ||
it would be interesting on what os u are working as well. did u try to open
the file?
on windows often a file is reported as 0 bytes as of failing the refresh in
explorer.
ralph_deffke@yahoo.de
"Andres Gonzalez" <andres@packetstorm.com> wrote in message
news:4AAE510E.8030005@packetstorm.com...
> I have read in the contents of a file using file_get_contents. I can
verify
> that the data has actually been read in by echoing its contents.
>
> But then if I do this:
>
> $ret = file_put_contents("/tmp/bla", $bk);
>
> The return value gives the correct size of string $bk, and the file
/tmp/bla
> is created in /tmp, but the length is 0.
>
> Why are not the contents written to the file?
>
> -Andres