I am trying to do something really simple, writing basic text to a .txt file. I have a test.txt file ready to go, have checked the permissions and the current user is the owner and has read and write permissions.
At the start of the <?php script I do the following checks:
- Code: Select all
echo "File exists - "
echo "is readable - "
echo "is writeable - "
I get the first two echos, so it both exists and is readable but apparently it is not writeable.
Any ideas would be appreciated.