[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:
\n";

mkdirs($directory,0755);



$dir_object = @dir ($directory) or die ("Could not open a directory stream
for $directory");

print_r($dir_object);

$dir_object->close();

?>

I have another script that takes some input from the user, namely to be a
new sub-folder to create on the destination directory.  Just to eliminate
the possibility that the code from my script is not the problem, I commented
out everything that had to do with what I really wanted.  In its place, I
substituted the above code from test.php.  When I call test.php, the
directory is created fine.  However, when I execute my problematic script,
which now contains the exact code, I get

Attempting to mkdir
Could not open a directory stream for \\seint16\TechComm\Ceos\Dang\

This is quite puzzling, since the exact same code should work in both
scripts, but it's not!  Any help, please!

Thanks,
Dang Nguyen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-11-18 Thread Dang Nguyen
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 other
scripts, and I know it's working fine.

mkdirs.php contains:
 1) {
  $pStrPath = dirname($strPath);
  if (!mkdirs($pStrPath, $mode)) return false;
  }

  return mkdir($strPath,$mode);
}
?>

-Original Message-
From: Jay Blanchard [mailto:[EMAIL 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 scripts
run as 'nobody' and 'nobody' does not have permission to create a
directory

http://us3.php.net/mkdir


[PHP] Firefox COM object

2005-05-16 Thread Dang Nguyen
Hello,

I would like to write some PHP scripts to automate web testing.  I already 
have a framework that uses the COM class to automate the tests in IE.  Now, 
I'd like to port that code so that I can test the same web pages in FireFox 
or Mozilla browsers.  I haven't been able to locate any documentation or 
otherwise regarding this matter.  Does Firefox have any COM interface like 
IE does?

Cheers,
Dang Nguyen 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php