blear Posted November 28, 2006 Share Posted November 28, 2006 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 6Warning: fread(): supplied argument is not a valid stream resource in SRV_PATH/matrixPHPFunctions.php on line 7Where 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 More sharing options...
fatherted Posted November 28, 2006 Share Posted November 28, 2006 maybe map it as a drivee.g net use e: \\direct\subdir\then just reference e: Link to comment https://forums.phpfreaks.com/topic/28776-remote-file-access/#findComment-131741 Share on other sites More sharing options...
blear Posted November 28, 2006 Author Share Posted November 28, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.