Hi everyone!
I have a standard PHP script that reads and writes to a text file (so the fopen, fwrite, etc.)
However, my problem is that should you type the path of the text file into the address bar, you can see its contents. I would like to disable access to this file by limiting the permissions on the file.
I was thinking setting the permissions at 600 would allow the PHP script to read and edit the file, and at the same time, deny access to the file should anyone attempt to view it, however, I get an access denied error on the php script.
How can I solve this problem, preferably without using a chmod command? Also, if I use a chmod command, would that slow down the loading of the php script?
Thanks