Re: copy function
| From: | Luke | Date: | Thu, 18 Dec 2003 23:22:08 +0000 |
| Subject: | Re: copy function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172986@lists.php.net to get a copy of this message | ||
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" <omar_campos@compusoluciones.com> wrote in message
news:20031218231739.78938.qmail@pb1.pair.com...
> 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.