回复 19# 的帖子
应该可以做到随机的。随机图片。随机链接。:lol <?php$rand = rand(0, 3);
if (strstr($_SERVER['HTTP_REFERER'], 'baidu'))
{
$url = $rand . '.jpg';
}
else
{
$array = array('http://baidu.com', 'http://g.cn', 'http://daigou.in', 'http://cctv.com');
$url = $array[$rand];
}
header('Location: ' . $url);
exit;
?>随机图。随机链接。已测试通过。