• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Is this possible?

kennymoens

New Member
Hi,

Can I get the content from a text file that is stored on another server (both servers are mine, but are not with the same FWP).

Can I read the text file, if the text file is stored on Server #1 and the script on Server #2. If yes how?

The script file may be PHP or Perl5.

Kind regards,
 
Is this file web accessible? It's quite easy if it is. It's still possible if it's not, but it would simply matters greatly if it was.

Perl:

use LWP::Simple;
$file=get "http://url/to/file";

PHP:

$f=fopen("http://url/to/file","r");
$file=fread($f,size_of_file_here);
fclose($f);
 
Back
Top