copy function
| From: | Omar | Date: | Thu, 18 Dec 2003 23:18:40 +0000 |
| Subject: | copy function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172985@lists.php.net to get a copy of this message | ||
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.