mkdir and directory permissions
| From: | Matias Silva | Date: | Thu, 24 Oct 2002 22:51:12 +0000 |
| Subject: | mkdir and directory permissions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121361@lists.php.net to get a copy of this message | ||
Hi-ya all, here's a quickie.......
In my script I create a directory (mysql.backup.timestamp/) within a
directory called backup/.
I use the function mkdir("mysql.backup.timestamp", "0777"); and it shows
the permissions
as after the function executes:
dr----x--t 2 nobody daemon 1024 Oct 24 15:16
mysql.backup.October-24-2002-1516
Where's the permissions (dr----x--t 2 nobody daemon) coming from? Is it
the php.ini, apache conf or
the operating system?
I would like to set the owner to "root" and the group to "nc". How can this
be achieved
by the php script? Or do I have set this up in the other environments (OS
or Apache)?
Cheers!
-Matias