RE: [PHP] mkdir() Cannot Create Directories
| From: | Wei, Alice J. | Date: | Tue, 17 Jun 2008 19:03:08 +0000 |
| Subject: | RE: [PHP] mkdir() Cannot Create Directories | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275495@lists.php.net to get a copy of this message | ||
Hi, Daniel:
Thanks, I didn't realize that is the only problem. It sure is working pretty good now.
One question, why didn't I get "Permission Denied" when I tried to do it before
the execution permissions were set properly?
Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
ajwei@indiana.edu
________________________________________
From: Daniel Brown [parasane@gmail.com]
Sent: Tuesday, June 17, 2008 2:54 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: Re: [PHP] mkdir() Cannot Create Directories
On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. <ajwei@indiana.edu> wrote:
> Hi,
>
[snip!]
>
> 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?
Does 'C:\Inetpub\wwwroot\TPU\test\' exist on the server, and is it
writable? Maybe you're just missing a directory up to that point
(such as 'test'), or maybe it's not on your C:\ drive.
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.