Hey all i am wondering why my code below is only writing the first but does not write the second file
$counterFile = 'counter.log';
$counterFileBU = 'counterBU.log';
if(!is_writable($counterFile)) {
$count = 'WErr';
}
else {
$count = file_get_contents($counterFile);
$count++;
file_put_contents($counterFile, $count);
file_put_contents($counterFileBU, $count . ' @ ' . date("F j, Y, g:i a"));
}
Any help would be great!
Your code would not run and would not output anything if this condition is not meet ?
You should try trigger some error