RE: Copy to network share

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is that drive mapped on your local machine or on the web server?

Jeff

> -----Original Message-----
> From: Clive Zagno [mailto:clive@xxxxxxxxxxxx] 
> Sent: Wednesday, June 01, 2005 8:31 PM
> To: Jeff McKeon; php
> Subject: Re:  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@xxxxxxxxxxxx
> > +1 (973) 889-8990 ex 209
> > 
> > 
> > 
> >>-----Original Message-----
> >>From: Clive Zagno [mailto:clive@xxxxxxxxxxxx]
> >>Sent: Wednesday, June 01, 2005 8:19 PM
> >>To: Jeff McKeon
> >>Subject: Re:  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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux