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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to Network Share and Create Folders and Files

Status
Not open for further replies.

james0816

Programmer
Joined
Jan 9, 2003
Messages
295
Location
US
I have my site working just fine on the local machine. I'm able to create folders and upload files and such just fine on this machine. I would like to ramp it up another notch by being able to connect to another machine and do the same (create folders, upload, download,etc). Basically it is the machine sitting right next to it.

I have tried the basics like:

mkdir("\\\\<servername>\\<share>\\<newfolder>",0700); and even
mkdir("P:\\<share>\\<newfolder>",0700);

Not having any luck. Can someone assist?

thx
 
Does the user as which your web server runs have the permission to do this? That's the permission your scripts will run as.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top