我的代码是
<?php $fp = fopen('test.txt', "a+"); fwrite($fp, 'Cats chase mice'); fclose($fp); ?>
但 test.txt 仍然是空的。我没有看到任何错误,我不明白为什么它不写。
php file fwrite
file ×1
fwrite ×1
php ×1