Re: Copy to network share
| From: | Clive Zagno | Date: | Thu, 02 Jun 2005 02:04:06 +0000 |
| Subject: | Re: Copy to network share | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216154@lists.php.net to get a copy of this message | ||
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-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-----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 (sharelevel 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