|
Posted by Marcel on 01/02/06 14:07
"Marcel" <info@nospam-bluegumdata.com.au> wrote in message
news:43b8db48@duster.adelaide.on.net...
> Hello,
> I have a problem with accessing files on other computers in my network.
> The network is a Windows 2000 workgroup network and I have administrator
> rights....
>
> This works (from the directory copytest I copy something to copytest2):
>
> <?php
> copy('05_17340.jpg', 'D:\\copytest2\\test.jpg');
> ?>
>
> The next bit does not do the job (from the same directory to a networked
> one):
>
> <?php
> copy('05_17340.jpg', 'V:\\copytest2\\test.jpg');
> ?>
> It gives me the following message:
> Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
> denied in D:\localweb\copytest\copytest.php on line 2
> (\\\computername\\sharename gives the same message).
>
> Any thoughts on this?
> Thanks,
> Marcel
>
A small addition:
Replacing the copy command with exec('copy d:\localweb\copytest\*.*
v:\copytest2\*.*' ) doesn't work either. When I issue the same command from
the DOS-prompt (copy d:\localweb\copytest\*.* v:\copytest2\*.*), it works...
Why, why, why?
[Back to original message]
|