Re: mkdir() Cannot Create Directories
| From: | Nitsan Bin-Nun | Date: | Tue, 17 Jun 2008 19:10:05 +0000 |
| Subject: | Re: mkdir() Cannot Create Directories | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275496@lists.php.net to get a copy of this message | ||
As far as I remember, when I was on shared windows I had something similar
(no access to upload/create folders), the tech guy at the company i was
hosting at changed something in my privileges and it solved it.
You may have no creating privileges.
On 17/06/2008, Wei, Alice J. <ajwei@indiana.edu> wrote:
>
> Hi,
>
> I have a code here that I am intending to create new directories by
> creating a parent and then proceed on to create the children one by one.
>
> I am trying to create directories in the server I am running my script from
> as shown in the snippet below. My problem is that although the code seems to
> be accurate, it keeps telling me that I cannot create the directories with
> the following error message:
>
>
>
> Cannot create directory C:/Inetpub/wwwroot/TPU/test/2
>
>
>
> This is my PHP code:
>
>
>
> mkdir("C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die ("<p>Cannot create
> directory C:/Inetpub/wwwroot/TPU/test/$id</p>");
>
>
>
> What is strange is that I don't get permission denied errors, but I still
> cannot create the directories. Can anyone provide me some tips on why I am
> getting these errors?
>
>
>
> Thanks in advance.
>
>
>
> Alice
>
> ======================================================
> Alice Wei
> MIS 2009
> School of Library and Information Science
> Indiana University Bloomington
> ajwei@indiana.edu
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>