Hi
I am a newbie to PHP so bear with me if my question sounds very naive.
Here is the situation.
From my website i need to show word files that are physically stored on different server. The path to the file and filename are stored in database in following format.
\\ServerName\SharedFolder\2009\AnotherFolder\Filetoshow.doc . SharedFolder is a share and I can access that when I try to access through windows explorer but I am not able to do it through php.
I have seen people suggesting $fh = fopen('http://www.example.com/robots.txt','r') to access a file on remote server, but mine is just stored in a folder.
Any pointers or help would be highly appreciated.
thanks
Mits
Displaying Word file stored on Remote Server
Moderator: General Moderators
Re: Displaying Word file stored on Remote Server
If the file is stored on a computer within the network \\ServerName\SharedFolder\2009\AnotherFolder\Filetoshow.doc might work, but over the internet you need a weburl.
Try reading this: http://stackoverflow.com/questions/1153 ... er-windows
Try reading this: http://stackoverflow.com/questions/1153 ... er-windows
-
stratbeans
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 29, 2009 2:23 am
Re: Displaying Word file stored on Remote Server
May be you can use this if you are using apache server then
$fh = fopen('ftp://townsville//var/school/bubbles.doc','r');
otherwise
$fh = fopen('ftp://townsville/var/school/bubbles.doc','r');
Note: It is working on ftp server.
$fh = fopen('ftp://townsville//var/school/bubbles.doc','r');
otherwise
$fh = fopen('ftp://townsville/var/school/bubbles.doc','r');
Note: It is working on ftp server.