You are here: Re: NEWBIE: Connecting to file server « PHP Programming Language « IT news, forums, messages
Re: NEWBIE: Connecting to file server

Posted by Lorenzo Thurman on 11/11/11 11:47

In article <lorenzo-0FCFDC.15544328042006@hedley.thethurmans.com>,
Lorenzo Thurman <lorenzo@nospamthethurmans.com> wrote:

> I need to connect to a remote Windows file server to read some files.
> How do I go about doing that. I've found various *connect functions, but
> they're all designed to connect to databases from what I can see.I've
> run across something called YAZ, which may do what I want but I don't
> know if Win2k is copliant. Any pointers would be greatly appreciated.
> Thanks

I figured it out:
Since I'm connecting from a Windows computer to another Windows
computer, I can use shell_exec to connect with a UNC. Something like
this will work
shell_exec("net use \\server\share /user:user password");

 

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

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