Jump to content

remote file access


blear

Recommended Posts


Need to know how to access files on remote servers w/ no webserver running.

Example.

I want to parse the file DATAFILE.TXT which is located on an internal network located at

[code]\\direct\subdir\[/code]

At present,

[code] $fileName='DATAFILE.TXT';
$fileParse = fread('\\\\direct\\subdir\\' . $fileName,'r');[/code]

Gives me the error(s) :

Warning: fopen(\\direct\subdir\DATAFILE.TXT) [function.fopen]: failed to open stream: No such file or directory in SRV_PATH/matrixPHPFunctions.php on line 6

Warning: fread(): supplied argument is not a valid stream resource in SRV_PATH/matrixPHPFunctions.php on line 7

Where SRV_PATH is truncation of the php scripts' location on webserver. These files change frequently on that remote server, it isnt really feasible to move them to the webserver.
Link to comment
https://forums.phpfreaks.com/topic/28776-remote-file-access/
Share on other sites


The webserver is SuSE 10, the other I am not sure, probably Windows. I have full root access to the webserver, and it is running samba. The remote server, no idea.

This Q may be beyond scope of this forum, but is it possible to mount a windows net resource to a reiser fs (SuSE 10)?
Link to comment
https://forums.phpfreaks.com/topic/28776-remote-file-access/#findComment-131750
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.