Try this: if (copy($file_att,'\\\\servername\\folder\\'.$file_name))
and make sure you have write access on the winNT server did that work? Luke om "Omar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way to copy a file from 1 server to a different one? > I have this code in a win 2k server, and i try to copy the file to a win NT > server: > > if (is_file($file_att)) > if (copy($file_att,'\servername\folder\'.$file_name)) > echo "succesful"; > else > echo "failure"; > > It gives me this warning: > > Warning: Unable to create '\servername\folder\image.jpg': Invalid argument > in D:\Intranet\sitio\Documentos\copyf.php on line 161 > failure > > I need this to work on any computer of the network. What kind of permission > do I need so any computer can use this script? > > Thanks for the help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php