Why would file_put_contents refuse to work for the following code?

$f = file_put_contents("files/r.js", "Some text here");

if ($f) print 1;
else print 0;
Edit
Report