You are here: Re: [PHP] Copy to network share « PHP « IT news, forums, messages
Re: [PHP] Copy to network share

Posted by Clive Zagno on 06/02/05 05:04

its on my local machine, in your case it will your w2k box.

clive

Jeff McKeon wrote:
> Is that drive mapped on your local machine or on the web server?
>
> Jeff
>
>
>>-----Original Message-----
>>From: Clive Zagno [mailto:clive@zlogic.co.za]
>>Sent: Wednesday, June 01, 2005 8:31 PM
>>To: Jeff McKeon; php
>>Subject: Re: [PHP] Copy to network share
>>
>>
>>sorry I ment to send to email to the list
>>
>>I tried the code bellow on my windows machine. I have a
>>mapped network
>>drive on my windows machine (i: drive) that links to a samba
>>share (my
>>htdocs directory on my linux dev machine). It worked fine.
>>
>>echo getcwd();
>>chdir('i:');
>>echo "<br>";
>>echo getcwd();
>>
>>clive
>>
>>
>>
>>Jeff McKeon wrote:
>>
>>>Yes, doesn't work either....
>>>
>>>Jeffrey S. McKeon
>>>Manager of Information Technology
>>>Telaurus Communications LLC
>>>jmckeon@telaurus.com
>>>+1 (973) 889-8990 ex 209
>>>
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Clive Zagno [mailto:clive@zlogic.co.za]
>>>>Sent: Wednesday, June 01, 2005 8:19 PM
>>>>To: Jeff McKeon
>>>>Subject: Re: [PHP] Copy to network share
>>>>
>>>>
>>>>Hi
>>>>
>>>>jave you tried creating a mapped network drive on windows?
>>>>
>>>>clive
>>>>
>>>>
>>>>Jeff McKeon wrote:
>>>>
>>>>
>>>>>I've got PHP 4.3 running on a Win2k IIS 5.0 web server. I need to
>>>>>upload a file and then copy it to a samba share (share
>>>>
>>>>level security)
>>>>
>>>>
>>>>>on a linux box across the network.
>>>>>
>>>>>I can
>>>>>
>>>>>$dirhandle = opendir(\\\\server\\share); Readdir($dirhandle);
>>>>>
>>>>>With no problem but I can't changed to the that dir to copy the
>>>>>uploaded files to it.
>>>>>
>>>>>I've tried
>>>>>
>>>>>Chdir(////server//share);
>>>>>
>>>>>Chdir(\\\\server\\share);
>>>>>
>>>>>But it always returns:
>>>>>
>>>>>Warning: chdir(): No such file or directory (errno 2)
>>>>>
>>>>>Is what I'm trying to do possible and if so, how?
>>>>>
>>>>>Many thanks,
>>>>>
>>>>>Jeff
>>>>>
>>>>
>>>>
>>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>

 

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

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