banners.php
(Open and refresh and you see the pic changes, one pic is empty too)
If i use banners.php as include in another file closer to root:
Code: Select all
<?php include "http://www.volunteerforum.se/overallheader/RandomBanner/rotate_nr/banners.php";?>
(Cant see anything)
banner.php looks like this:
Code: Select all
<?php
srand ((double) microtime( )*1000000);
$numbanners = 7;
$banner = rand(0,$numbanners);
echo "<table align=center width=468 height=60><tr><td>";
include ("http://www.volunteerforum.se/Minmapp/Banners/Random/rotate_nr/$banner.tpl");
echo "</td></tr></table>";
?>
(banners.php create so 1.tpl to 7.tpl shows one in a time random)
Code: Select all
<?php include "http://www.volunteerforum.se/overallheader/RandomBanner/rotate_nr/1.tpl
";?>
And the code in the 1.tpl looks like this:
Code: Select all
<A href="http://www.barnhemmet.nu" target=_blank><IMG alt="Projekt Bagrationovsk"
src="http://www.volunteerforum.se/Minmapp/Banners/Random/Bagrationovsk.gif"
border=0></A>
So can i use echo on the file insted somehow ?
Or why dosen't it work ?