How do I set permissions for a certain user (ie nobody) for a directory?
If I do this, won't anyone on teh server be able to write to that directory?

Thanks,
Jeff

At 10:39 AM 10/25/01 -0700, Kurt Lieber wrote:
>On Thursday 25 October 2001 10:08, you wrote:
>> <?
>> $GalleryPHPName = "Pins";
>> mkdir ("../$GalleryPHPName", "0775");
>> ?>
>>
>> Results in...
>>
>> MkDir failed (Permission denied)
>
>When you use a file-related command (fopen, mkdir, etc.) you're executing 
>that command under the same user-context that apache runs under. (usually 
>"nobody" on shared servers)  So, you need to make sure that user "nobody"
has 
>write permissions on the parent directory where you're trying to create your 
>directory.
>
>--kurt
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
___________________________________________________________

Save 15% on 2002 Calendars and Holiday Cards!

http://www.AvantGifts.com
Discount Code: hopper22ct
Offer Good Through October 31, 2001
___________________________________________________________ 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to