q3ick
Regular Member
- Oct 27, 2008
- 413
- 116
Ok so i have the following PHP file.
First off is this done right?
Second, to enable the double meta refresh. Do I only have to drop it into the folder that the page is in? or do I add it to the .HTML file some how.
Please help
-q3ick
Code:
<?php
$page0 = "http://www.iannex.org";
$referer = $_SERVER['HTTP_REFERER'];
$mypages = array($page0);
$myrandompage = $mypages[mt_rand(0, count($mypages) -1)];
if($referer == "")
{
echo "<meta http-equiv="refresh" content="0;url=$myrandompage">";
}
else
{
echo "<meta http-equiv="refresh" content="0;url=rd1.php">";
}
?>
First off is this done right?
Second, to enable the double meta refresh. Do I only have to drop it into the folder that the page is in? or do I add it to the .HTML file some how.
Please help
-q3ick