Reply to Re: How can I access a file remotely?

Your name:

Reply:


Posted by Rik on 07/31/07 01:32

On Mon, 30 Jul 2007 18:16:32 +0200, Florian Erfurth
<floh-erfurth@arcor.de> wrote:

> Hi everyone,
> as a Win-User he has to enter "\\intranet\logons$\wsa01.txt" in explorer
> in
> order to open this file.
> Now I'm writing a php-script on freeBSD. I don't have a idea how to
> access
> this file. I already tried following:
> fopen("//intranet/logons$/wsa01.txt");
>
> But the file is not found. I think I have to use samba, am I right? But
> how
> should I do that with php.
>
> I'm really new in php and today I write the very first time a
> php-script. I
> already looked in http://www.php-homepage.de/manual/ (by the way, this
> is a
> good manual! :) ).

Hmmmz, I believe that with a Linux server the easiest thing you can use is
a simple symlink in the local filesystem which points to the mounted SMB
share... Then again, I have never used SMB shares with Linux.

On Windows, Vista has tried to catch up on this, do not know how it
handles shares...
Links about Vista's capabilities
<http://msdn2.microsoft.com/en-us/library/aa365680.aspx>
<http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/>
<http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/>
--
Rik Wasmus

[Back to original 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

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