Double Meta refresh question...

q3ick

Regular Member
Joined
Oct 27, 2008
Messages
413
Reaction score
116
Ok so i have the following PHP file.

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
 
a DMR requires 2 files placed on 2 diff pages, the first one refreshes the the second, the second refreshes to the final page.
 
Back
Top