Jump to content

Using PHP to copy a file over the network


ReType

Recommended Posts

Hello!, having a bit of an issue at the moment,

 

im using IIS and php 4, im trying to write a bit of code that will cope a file from 1 network location to another

 

i have tried 2 methods using the copy command, the first is mapping the network location onto the webserver

 

then going copy('x:\example',... etc

 

the other method is using UNC paths, both work fine if i call the php script from the command line like c:\php\php.exe c:\myscript.php

this works fine but from a browser i just get file cannot be found,

 

i have tried setting setting various permissions on the destination server, tried changing the IUSR_ account to a domain account etc,

 

but im not having a lot of luck... any help would be appreciated :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.