I'm assuming you are using IIS. If your harddrive is formatted using NTFS, you are going to have to add a new entry to the ACL list for the directory to let the IUSR_<machinename> account access the directory.
There are plenty of readmes/articles on managing NTFS permissions. I don't have time to go into the details of how to do it, only to tell you that that is what you have to do. BTW; By default Windows XP (If thats what you are using) enables Simple Sharing/File Permisisons. To turn that off in Windows Explorer; Tools | Folder Options | View | (Scroll Right Down to bottom) Use simple sharing <-- untick -----Original Message----- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Monday, 13 January 2003 2:36 PM To: [EMAIL PROTECTED] Cc: PHP List Subject: Re: [PHP] Permission Denied 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)" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] : : > -----Original Message----- : > From: Stephen [mailto:[EMAIL PROTECTED]] : > Sent: Monday, 13 January 2003 9:09 AM : > To: [EMAIL PROTECTED] : > 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" <[EMAIL PROTECTED]> : > To: <[EMAIL PROTECTED]> : > 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 : > : : : -- 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