随机动物图片API:https://api.hefollo.com/API/dongwu.php
随机动漫图片API:https://api.hefollo.com/API/dongman.php
随机城市图片API:https://api.hefollo.com/API/chengshi.php
随机情感图片API:https://api.hefollo.com/API/qinggan.php
随机手绘图片API:https://api.hefollo.com/API/shouhui.php
随机文字图片API:https://api.hefollo.com/API/wenzi.php
随机机械图片API:https://api.hefollo.com/API/jixie.php
随机游戏图片API:https://api.hefollo.com/API/youxi.php
随机物语图片API:https://api.hefollo.com/API/wuyu.php
随机美女图片API:https://api.hefollo.com/API/meinv.php
随机视觉图片API:https://api.hefollo.com/API/shijue.php
随机设计图片API:https://api.hefollo.com/API/sheji.php
随机风景图片API:https://api.hefollo.com/API/fengjing.php
随机PC动漫图片API:https://api.hefollo.com/API/dongmanpc.php
随机4K动漫图片API:https://api.hefollo.com/API/4k.php
随机PC美女图片API:https://api.hefollo.com/API/meinvpc.php
随机小姐姐视频API:https://api.hefollo.com/API/xjjsp.php
随机PC端风景图片API:https://api.hefollo.com/API/fengjingpc.php
URL文件夹下有链接集合可在线调用链接!
例如:
$txt = “https://hefollo.com/URL/%E5%8A%A8%E6%BC%AB%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5.txt”; //读取远程动漫图片链接.txt;
if(file_get_contents($txt)){ //判断txt文件是否存在
$data = file($txt); //将文件存放在一个数组中,这里你也可以循环输出这个数组,我这边就随机读取数组里的一条输出;
$num = count($data); //条数;
$id = mt_rand(0,$num-1); //随机数字;
$url = chop($data[$id]); //显示第几行数据,并去除空格;
header(“location:$url”); //随机显示
}
?>
具体图片自己测!
暂无评论内容