File not writable in localhost
I am using MAMP for Apache localhost server on a mac. I have a php code which adds username and password to the existing accounts.txt file. I have got a code to check if the file accounts.txt is writable and display in localhost if it is not writable, and as the localhost echoes “File is not writable”. Both the php code file and accounts.txt are within the same folder directory. How can I resolve this permission issue?