Re: File upload and permissions

From: Date: Fri, 07 Mar 2003 04:38:28 +0000
Subject: Re: File upload and permissions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138557@lists.php.net to get a copy of this message
On Fri, 2003-03-07 at 07:24, Charles Kline wrote: > I have played with it - changing permissions and the only > one that works is chmod 777 - not sure if this is good or not - pretty > new to unix administration stuff. If you don't want to make a new directory to store them, you should make sure that uploaded files have their permissions changed by php so that only the web server can read them. You could in addition have php create the directory in which you want to store them, so that it has total control of the directory's permissions. I did this with my website so that other users of the machine can't even see what's in the directories in which my users store images. They might be private after all, who am I to say? Nik

« previous php.general (#138557) next »