When allowing PHP to write files on the server is it necessary to always set directory permissions at 777?
I'm building a caching system for my literature site, or rather a system that outputs the pages as plain html with no db calls or php in them. Writing a php script to create these files is no problem, I just don't like the idea of putting what basically amounts to the root of my site as 777.
I think that perhaps I might not need to do this if I run the files from shell when logged in as root such as:
php /home/admin/makepages.php
But I'm not sure.
Anyone do this before?
Bookmarks