Creating directory
Moderator: General Moderators
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Creating directory
What directive controls if the php is allowed to create and delete directories?
Im not sure if this is what your looking for but
$someDirName=somedirname <--- can be given value dynamically if necessary.
The above code should create the dir and give it proper permissions to write to it.
hope it helps a bit if not check out
http://www.php.net
$someDirName=somedirname <--- can be given value dynamically if necessary.
Code: Select all
$pathname = "yourPath".$someDirName;
$old = umask(0);
mkdir($pathname, 0777);
chmod($pathname, 0777);
umask($old);hope it helps a bit if not check out
http://www.php.net
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
liquid wrote:Could you post some code so I can take a look at whats going on?
Im out today, but will reply more in the morning if you still need some help.
liquid
drwxrwxrwx 2 httpd customer 4096 Nov 12 02:22 phpmade_dir
drwxrwxrwx 2 jat**** jat***** 4096 Oct 14 06:17 ftp_made_dir
That's the problem...