Forum Moderators: coopster

Message Too Old, No Replies

Trouble with file writing

         

FourDegreez

9:07 pm on Nov 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is very straightforward:

if ($fh = fopen($log, 'a')) {
fwrite($fh, $data);
fclose($fh);
}

Was working fine. Now the if condition returns true, but fwrite fails. If the file does not already exist, it gets created with zero bytes, and nothing is written to it. Any clue as to why that would happen?

FourDegreez

9:49 pm on Nov 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh wow. I had hit my disk space quota! Sorry, not a PHP issue.