-4
元隨機重定向隨機秒。元隨機重定向隨機X秒
<?php
$offers = array(
"http://www.url1.com",
"http://www.url2.com",
"http://www.url3.com",
"http://www.url4.com"
);
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "") {
$url = $offers[rand(0, count($offers) - 1)];
echo "<meta http-equiv='refresh' content='0;url=$url'>";
}
else
{
echo "<meta http-equiv='refresh' content='0;url=http://www.firstpage.com'>";
}
?>
我需要有人來添加隨機秒.. 謝謝
這是個什麼問題?請參閱[How to Ask](http://stackoverflow.com/help/how-to-ask) – radoh