Re: MKDIR Permission Denied

From: Date: Thu, 25 Oct 2001 17:39:25 +0000
Subject: Re: MKDIR Permission Denied
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72313@lists.php.net to get a copy of this message
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

« previous php.general (#72313) next »