Re: Re: file_put_contents problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is on a Ubuntu 9.04 box. I did not try to open the file but just listing out the directory gives the size and it is 0. If I try to cat out the contents, there is
nothing (I guess that does an open on it)

-Andres



Ralph Deffke wrote:
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@xxxxxxxx


"Andres Gonzalez" <andres@xxxxxxxxxxxxxxx> wrote in message
news:4AAE510E.8030005@xxxxxxxxxxxxxxxxxx
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




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux