Re: Creating a Directory

From: Date: Wed, 13 Apr 2005 01:50:18 +0000
Subject: Re: Creating a Directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212977@lists.php.net to get a copy of this message
I think you could use php function mkdir() to do this. mkdir("/path/to/my/upload_dir", 0777); But unfortunately there is big "BUT" aka Safe_mode. To use this mkdir() function, you have to disable the Safe_mode on the server :( "Note: When safe mode is enabled, PHP checks whether the directory in which you are about to operate has the same UID (owner) as the script that is being executed." You can read more about mkdir() here: http://lv2.php.net/manual/en/function.mkdir.php and about chmod values here: http://lv2.php.net/manual/en/function.chmod.php Hope this helps, Lab.

« previous php.general (#212977) next »