Re: Permission Denied

From: Date: Sun, 12 Jan 2003 02:10:25 +0000
Subject: Re: Permission Denied
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131295@lists.php.net to get a copy of this message
There's already a folder named packs but my problem was not having the / before it. One more question. How can I dynamically get the path to the current folder? Like your at http://www.bob.com/joe/index.php and you want to get the http://www.bob.com/joe/ bit and do it dynamically? ----- Original Message ----- From: "Chris Hayes" <chayes@antenna.nl> To: "Stephen" <webmaster@melchior.us> Sent: Saturday, January 11, 2003 8:49 PM Subject: Re: [PHP] Permission Denied : At 02:40 12-1-2003, you wrote: : >Why do I get this error whenever I try to CHMOD something in PHP or create : >a directory (in this case): : > : >Warning: mkdir(packs/bob) : >[<http://www.php.net/function.mkdir>function.mkdir]: Permission denied in : >c:\inetpub\wwwroot\phpiw\classes\class.cp.php on line 20 : > : >Here's line 20 of class.cp.php: : > : > mkdir('packs/'.$package, 0777); : : I suppose you have no dir creation rights in the dir in which you want to : add this. : : I also think you can only mkdir one directory at a time, if so you need to : make 'packs' first, then 'bob'. But that would need testing. : : :

« previous php.general (#131295) next »