My code is
<?php $fp = fopen('test.txt', "a+"); fwrite($fp, 'Cats chase mice'); fclose($fp); ?>
but test.txt is still empty. I don't see anything wrong and I don't understand why it's not writing.
Write this in a console
chmod a+w test.txt