copy function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux