RE: [PHP] CHMOD...
| From: | Jay Blanchard | Date: | Thu, 04 Dec 2003 14:14:41 +0000 |
| Subject: | RE: [PHP] CHMOD... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171827@lists.php.net to get a copy of this message | ||
[snip]
> exec("chmod 0777 /directory/*");
>
> You still cannot set all sub directory and files within those
> permissions. Best to loop through and set each as needed, don't forget
> to cahnge them back.
>
Yes, you can:
exec("chmod -R 0777 /directory/*");
[snip]
*slaps forehead* Duh me! Of course! I so rarely (nearly never) use that
switch that in my haste to fire off an answer I forgot it.