RE: [PHP] Copy to network share
| From: | Jeff McKeon | Date: | Wed, 01 Jun 2005 17:39:24 +0000 |
| Subject: | RE: [PHP] Copy to network share | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216156@lists.php.net to get a copy of this message | ||
That won't work. I don't want the users mapping a drive on their local
machine. I tried mapping it on the server running the IIS and doing as
you suggest, but it doesn't work.
Jeff
> -----Original Message-----
> From: Clive Zagno [mailto:clive@zlogic.co.za]
> Sent: Wednesday, June 01, 2005 10:04 PM
> To: php
> Subject: Re: [PHP] Copy to network share
>
>
> 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
> >>
> >>
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>