Re: mkdir security concern

From: Date: Thu, 20 Jan 2005 11:09:25 +0000
Subject: Re: mkdir security concern
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206816@lists.php.net to get a copy of this message
kids_pro wrote:
Hi there, I want to create a script. When user register I want to create a folder : users\<new_user_folder>\images The purpose is that I want to allow them to upload image to this image folders. What sort of permission should I give to each folder Root: users, <new_user_folders>, and images folder.
The least necessary. That depends on your server setup, primarily the user id your scripts are run under (mod_php/cgi or suexec). You might want to use ftp functions to create the directories if they would be created with apache as the owner otherwise.

« previous php.general (#206816) next »