Re: Permission Denied
| From: | Stephen | Date: | Mon, 13 Jan 2003 20:16:34 +0000 |
| Subject: | Re: Permission Denied | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131470@lists.php.net to get a copy of this message | ||
Ok, I finally just right clicked on my wwwroot folder and went to security.
I allowed control to everyone on the network (just me and my brothers) and
it works. Just one last question! What should the CHMOD settings be for when
it goes online?
----- Original Message -----
From: "Sean Malloy" <sean@element.net.au>
To: "Stephen" <webmaster@melchior.us>; "PHP List"
<php-general@lists.php.net>
Sent: Sunday, January 12, 2003 10:40 PM
Subject: RE: [PHP] Permission Denied
: 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:webmaster@melchior.us]
: Sent: Monday, 13 January 2003 2:36 PM
: To: hitcho@php.net
: 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)" <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
: : >
: :
: :
: :
:
:
:
: --
: 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
:
: