Forum Moderators: coopster
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?