Customizing SMF > Graphics and Templates
SSI Within a Template?
alienine:
depending on your hosts php config you can do anything from loading up other people's pages to running your house.
Overseer:
ok well assuming my host will let me run my house what do I call to load up someone elses page and spit it out as my scripts output?
۞:
You should be able to just use <? include('http://url.com/to/page.html'); ?>
Overseer:
sweeeeeeeet ;D
i've got full access to the other site.. back with results later!
Overseer:
ok i've done it.
you cant use <? include('mypage.html'); ?> to include a page on a remote site.
here is my script...
<?
echo "<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html>";
echo "<br>~inctest~<br>";
include 'local.php';
echo "<br>";
$target = "http://www.anothersite.com/remote.php";
$html = implode ('', file ( $target ));
echo $html
?>
remote.php contains...
<?
echo "remote";
?>
local.php contains...
<?
echo "local";
?>
kinda cool.. i'm ggonna have to do some additions for 1)errors loading and that kinda thing.. but that should be too much hassle!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version