You are here: Re: copy()-problem over a network « PHP Programming Language « IT news, forums, messages
Re: copy()-problem over a network

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?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация