Allow PHP to write file without 777
Posted
by
camerongray
on Server Fault
See other posts from Server Fault
or by camerongray
Published on 2012-09-18T13:03:22Z
Indexed on
2012/09/18
15:41 UTC
Read the original article
Hit count: 189
I am setting up a simple website on webspace provided by my university. I do not have database access so I am storing all the data in a flat file. The issue I am experiencing is related to file permissions. I need PHP to be able to read and write the data file but I don't really want to set the file to 777 as anybody else on the system could modify it, they already have read access to everyone's web directories. Does anyone have any ideas on how to accomplish this?
Thanks in advance
© Server Fault or respective owner