Re: MKDIR Permission Denied

From: Date: Thu, 25 Oct 2001 18:41:09 +0000
Subject: Re: MKDIR Permission Denied
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72323@lists.php.net to get a copy of this message
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: 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 > ___________________________________________________________ Save 15% on 2002 Calendars and Holiday Cards! http://www.AvantGifts.com Discount Code: hopper22ct Offer Good Through October 31, 2001 ___________________________________________________________

« previous php.general (#72323) next »