Re: [PHP] mkdir() Cannot Create Directories
On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, [snip!] This is my PHP code: mkdir(C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die (pCannot 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mkdir() Cannot Create Directories
On 6/17/08, Daniel Brown [EMAIL PROTECTED] wrote: On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, [snip!] This is my PHP code: mkdir(C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die (pCannot 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. Alice, that's a default IIS path to the web root, so I assume you _might_ be using IIS. Maybe the IIS manager is locking you out somehow. --David.
RE: [PHP] mkdir() Cannot Create Directories
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 [EMAIL PROTECTED] From: Daniel Brown [EMAIL PROTECTED] 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. [EMAIL PROTECTED] wrote: Hi, [snip!] This is my PHP code: mkdir(C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die (pCannot 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mkdir() Cannot Create Directories
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. [EMAIL PROTECTED] 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 (pCannot 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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php