Re: mkdir and directory permissions
| From: | Matias Silva | Date: | Fri, 25 Oct 2002 17:10:34 +0000 |
| Subject: | Re: mkdir and directory permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121450@lists.php.net to get a copy of this message | ||
Cool! the umask() is what I have to set prior to mkdir() for this to work.
Thanks Jason & Marek
-Matias
"Matias Silva" <mpsilva@storagecommander.com> wrote in message
news:20021024225108.24906.qmail@pb1.pair.com...
> 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
>
>
>