RE: [PHP] why does chmod($dirPath,6770); fail?
| From: | Benton Jackson | Date: | Thu, 20 Jul 2000 21:50:23 +0000 |
| Subject: | RE: [PHP] why does chmod($dirPath,6770); fail? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7482@lists.php.net to get a copy of this message | ||
You need to force it into octal, you are sending a decimal number:
chmod($dirPath,06770);
> -----Original Message-----
> From: Daevid Vincent [mailto:DayWalker@TheMatrix.com]
> Sent: Thursday, July 20, 2000 3:53 PM
> To: PHP General
> Subject: [PHP] why does chmod($dirPath,6770); fail?
>
>
> I'm curious as to how come I can't set a directory to look like:
>
> drwsrws--- 2 nobody html 4096 Jul 20 13:43 junk/
>
> with chmod($dirPath,6770);
>
> it ends up being all whacked:
>
> d--srw--wT 2 nobody html 4096 Jul 20 13:41 junk/
>
> Apache is running as "nobody" and 'nobody' is in the 'html'
> group.
>
> even chmod($dirPath,4770); doesn't work.
>
> Basically I want this set so that all files then uploaded will be set
> correctly to the 'nobody.html' owner.group...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net