[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 oth
PROTECTED]
Sent: Tuesday, November 18, 2003 11:38 AM
To: Dang Nguyen; [EMAIL PROTECTED]
Subject: RE: [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 sc
[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 (http://www.php.net/)
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:
\n";
mkdirs($directory,0755);
$dir_object = @dir ($directory) or die ("Could not open a directory stream
for $directory");
print_r($dir_object
4 matches
Mail list logo