以下の私のコードが最初のファイルだけを書き込んでいて、2番目のファイルを書き込んでいないのはなぜだろうと思っています
$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"));
}
どんな助けでも素晴らしいでしょう!