[PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Dang Nguyen
I have a peculiar problem in one of my scripts. I cannot mkdir from the script, but from a test script, the same exact code works. test.php contains: ? include('func/mkdirs.php'); // this function recursively checks and create a directory tree. I know it works fine. $directory =

RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Jay Blanchard
[snip] mkdirs($directory,0755); [/snip] should be mkdir($directory,0755); make sure the script has permission to make a directory, most scripts run as 'nobody' and 'nobody' does not have permission to create a directory http://us3.php.net/mkdir -- PHP General Mailing List

RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Dang Nguyen
: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000 [snip] mkdirs($directory,0755); [/snip] should be mkdir($directory,0755); make sure the script has permission to make a directory, most scripts run as 'nobody' and 'nobody' does not have permission to create a directory http://us3.php.net

RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Jay Blanchard
[snip] In my case, I've created a function called mkdirs that recursively checks and does a mkdir on a given path. So, if any of the folders in a given path don't exist, then they will get created. I include this at the top via include('func/mkdirs.php');. I've used this mkdirs function in