• 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

php ?

You can include the text from a file from a remote server the same way you can from a local one, i.e. <?php include="http://remote/header.txt"; ?> would work just the same as <?php include "./header.txt"; ?>. If you were talking about including something you actually intend to be parsed along with the script, though, you can't do that.
 
nope...just test it myself to make sure, only could do it locally

it display when written for local, but can't display when the real internet address for the file was used
 
Sure it works. If it doesn't on your server, make sure allow_url_fopen hasn't been disabled.
 
i tried that first just changing the code to the url i was trying to link and it had a out put of a error message
 
Are you trying to do something like this?

$img=fopen("http://server/image.gif","rb");
header("Content-type: image/gif");
fpassthru($img);
fflush();
 
Back
Top