Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mkdir failed to create network directory

Status
Not open for further replies.

sophiatan

Programmer
Apr 10, 2001
8
SG
I have a script that creates a folder on another PC in the same domain. When I run the script in dos mode, everything works fine. When I try to run it via a web page, it just couldn't create the folder, but it works if I'm creating it on the local machine.
I've configure the IIS web server to use a domain account, so I don't understand why I can create a folder on the local machine (wksta01) and not another machine (wksta02) within the same domain. :-(

Assuming wksta01 is where it script it at.
mkdir("//wksta01/d/tmp", 0777); - success
mkdir("//wksta02/d/tmp", 0777); - failed



 
Is there anyway to logon the machine as the web user account?
I don't really know much about such, I figured that would narrow down what might be causing the trouble.

-k
 
I did, and the confusing part is, the script works if I run it from the command line when I logged on as the web user. But failed when running via the browser.
The directory of the 2nd machine where I'm suppose to create the folder under is set to allow access to everyone.
And the error in the $! variable was "Invalid argument" ... and what was that suppose to mean??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top