file_put_contents problem

From: Date: Mon, 14 Sep 2009 14:19:58 +0000
Subject: file_put_contents problem
Groups: php.general 
Request: Send a blank email to php-general+get-298008@lists.php.net to get a copy of this message
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

« previous php.general (#298008) next »