[quote=oasiz,Nov 30 2004, 05:10 PM]Hi folks
I am trying to use
THIS page as a php include on a website but i cant.
e.g
<?php include "http://oaserv.ath.cx:7668/>Oasiz" ?>
I have viewed properties on that particular page and it says "Type - File" (whatever that means).
Is there any way i can include it on a web page?
If so, how? (or if not, what are my other options i.e ways to get round it)
I hope you brainiacs can help because im stumped
All the best,
Rob
[/quote]
Well if its not a php file you need to use fopen and fread. Include includes PHP source. It doesnt output HTML source.
Here's an example from php.net:
<?php
$filename = "somefile.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
?>
http://us2.php.net/m...ction.fopen.php
http://us2.php.net/m...ction.fread.php