PHP PHP随机显示图片
pic.php list.txt放在网站根目录 pic.php内容如下: <?php $arr=file(‘list.txt’); $n=count($arr)-1; header(‘Location: https://prodigyu.com/pic/’.$arr[rand(0,$n)]); ?>
3,232 Views 0 Comments
PHP August 26, 2011
pic.php list.txt放在网站根目录 pic.php内容如下: <?php $arr=file(‘list.txt’); $n=count($arr)-1; header(‘Location: https://prodigyu.com/pic/’.$arr[rand(0,$n)]); ?>