Re: Permission Denied

From: Date: Mon, 13 Jan 2003 03:36:24 +0000
Subject: Re: Permission Denied
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131386@lists.php.net to get a copy of this message
Yes, I just added it but same error: Warning: mkdir(c:\inetpub\wwwroot\phpiw\packs\bob) [function.mkdir]: Permission denied in c:\inetpub\wwwroot\phpiw\classes\class.cp.php on line 28 Here's the part where I try and make the folder: function do_dir($package) { umask(0); if(mkdir($this->currentfolder().'packs\\bob', 0777)) { return true; } else { echo 'There is already a package by the name of '.$package.'! Delete it and try again.<br><br>'; return false; } } Any ideas? ----- Original Message ----- From: "Timothy Hitchens (HiTCHO)" <hitcho@php.net> To: "'Stephen'" <webmaster@melchior.us>; <php-general@lists.php.net> Sent: Sunday, January 12, 2003 6:33 PM Subject: RE: [PHP] Permission Denied : Did you use the umask(0) prior to the mkdir() in your script?? : : : Timothy Hitchens (HiTCHO) : Open Platform Consulting : e-mail: tim@hitcho.com.au : : > -----Original Message----- : > From: Stephen [mailto:webmaster@melchior.us] : > Sent: Monday, 13 January 2003 9:09 AM : > To: php-general@lists.php.net : > Subject: Re: [PHP] Permission Denied : > : > : > Ok, I got it to make a directory as a absolute path but I'm : > getting a "Permission Denied" error again. I'm running IIS so : > I can't CHMOD and all the permission options are checked in : > the options box. : > : > : > ----- Original Message ----- : > From: "Jason Wong" <php-general@gremlins.biz> : > To: <php-general@lists.php.net> : > Sent: Sunday, January 12, 2003 4:03 AM : > Subject: Re: [PHP] Permission Denied : > : > : > : On Sunday 12 January 2003 10:10, Stephen wrote: : > : > 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? : > : : > : print_r($_SERVER) will show you which bits you can use. : > : : > : -- : > : Jason Wong -> Gremlins Associates -> www.gremlins.biz : > : Open Source Software Systems Integrators : > : * Web Design & Hosting * Internet & Intranet Applications : > Development * : > : : > : /* : > : I'll show you MY telex number if you show me YOURS ... : > : */ : > : : > : : > : -- : > : PHP General Mailing List (http://www.php.net/) : > : To unsubscribe, visit: http://www.php.net/unsub.php : > : : > : : > : : > : > : > : > -- : > PHP General Mailing List (http://www.php.net/) : > To unsubscribe, visit: http://www.php.net/unsub.php : > : : :

« previous php.general (#131386) next »