tarlejh Posted June 15, 2008 Share Posted June 15, 2008 I really should know the answer to this, but... how do you complete a simple task like having PHP write to text file on your server, without this being insecure? It seems the permissions for such a file would need to be set to 777, which I always thought was something you never ever do to a file accessible through the web. ??? Link to comment https://forums.phpfreaks.com/topic/110323-writing-to-file-on-the-webserver-is-this-secure/ Share on other sites More sharing options...
ratcateme Posted June 15, 2008 Share Posted June 15, 2008 i dont know who else will read the file but if you chown the owner of it to apache (I think is the user php uses) and then u can chmod it to 600 and only apache should be able to read and write it. Scott. Link to comment https://forums.phpfreaks.com/topic/110323-writing-to-file-on-the-webserver-is-this-secure/#findComment-566045 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.