Originally posted by safesys There are many ways to do this type of content injection in php. You could do it using an include if the source data is just text/html eg:
http://uk.php.net/include/
so you'd just have you're normal html markup and include php where you want the text in it eg:
<? include("http://domain.tld/data.txt"); ?>
for more control over the input you could use the file handling eg:
http://uk.php.net/manual/en/function.fread.php
which could look something like this:
<?
$filename = "http://www.domain.tld/data.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
print $contents;
?>