Re: file_put_contents problem

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

 



Andres Gonzalez wrote:
> 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
> 

We will need to see a little more code before we can make assumptions.

Jim


-- 
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