What's wrong with FTP? -----Original Message----- From: Omar To: php-windows@lists.php.net Sent: 2003-12-19 00:17 Subject: copy function 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 Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php