smyz 发表于 2009-10-7 20:45:11

回复 19# 的帖子

应该可以做到随机的。随机图片。随机链接。:lol

smyz 发表于 2009-10-7 22:05:09

<?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;
?>随机图。随机链接。已测试通过。

cpuer 发表于 2009-10-7 23:56:34

回复 22# 的帖子

:handshake :handshake
页: 1 2 [3]
查看完整版本: 百度贴吧图片点击后跳转链接