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)]); ?>