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

Your name:

Reply:


Posted by Jerry Stuckle on 08/02/07 10:37

Florian Erfurth wrote:
> ELINTPimp wrote:
>
>> On Jul 30, 12:16 pm, Florian Erfurth <floh-erfu...@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 inhttp://www.php-homepage.de/manual/(by the way, this is
>>> a good manual! :) ).
>>>
>>> Thank you very much!
>>> cu Floh
>> If there isn't already a mechanism in place to work between the two
>> filesystems (Samba, netapp, even FTP), then it isn't going to work.
>> You need to get this resolved before you even start with PHP.
> Nope. And my colleague doesn't like to do that "outside" of php-script.
>

That wasn't his point. His point was, if there isn't a way to access
the file without PHP, PHP can't "magically" create a way to access it.
PHP can only automate what can be done manually.

>> If, however, you are able to navigate to that directory from your BSD
>> machine in the command prompt, for example, you're set. In that case,
>> you need to use the same \'s as windows uses, except you have to
>> escape them:
>>
>> \\\\intranet\\logons$\\wsa01.txt
> Even that doesn't work. But I've discussed with my colleague and we decided
> to use ftp instead of smb.
>

I hope you're not trying to do this "live" every time the web page is
loaded...

> Thank you very much!
> cu Floh


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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