I have a little blogging service. Each user has a folder directly off the webroot, such as
http://www.mysite.com/user1/ (public_html/user1)
In that folder is about 10 php pages and 2 sub-folders, movies and photos.
The movies and photos folder permissions are set to 0777 so my php scripts can move uploaded items there from the temp folder.
So I'm already doing something bad - having folders with write permissions below the web root.
But now I am writing a user creation php script for signing up a new user and the only way to be able to create a new folder for that user is to make the web root itself writable. Seems very bad to do this.
I know other people have had other user systems similar to this and I was hoping someone could shed some light on the best approach? Anyway to get these items above the webroot without modifying the apache httpd.conf? It has to be expandable - more users will be added on the fly.
Thanks for any help!
bread
*edit: got above and below mixed up in my first post