|
|
随便在你的网站创建一个文件夹,然后给下面的脚本随便命名[还是命名成index.php吧,方便绕过检查].- <?php
- $file = glob("*.*");
- function isimages($v) {
- if(strpos($v,".gif") || strpos($v,".png") || strpos($v,".jpg"))return true;
- return false;
- }
- $file = array_filter($file,"isimages");
- $rand = array_rand($file);
- readfile('./'.$file[$rand]);
- ?>
复制代码 这次增加了文件自动判断了,直接放图片格式的文件就OK
然后头像外链用这个php地址:http://xxxxxxx/xxx/?.gif |
评分
-
查看全部评分
|