how to manage permissions for file uploader

From: Date: Wed, 03 Jun 2009 21:24:59 +0000
Subject: how to manage permissions for file uploader
Groups: php.general 
Request: Send a blank email to php-general+get-293582@lists.php.net to get a copy of this message
to upload an image for a photo gallery (my own code) I have to have permission for the directory images 0777. but having permission for a directory 0777 is REALLY bad idea, isn't it? I'm "owner" of the directory (lamp:lamp images). what to do to set my code has permission to upload an image into the images directory and have permissions on the directory 0755? I googled for file uploader scripts and classes to se how they handle it but I can't see that part. just file/size/type validation and moving uploaded file to final destination. thanks. -LL

« previous php.general (#293582) next »