cxcool 发表于 2006 年 6 月 17 日 13:39:55

求当年那个自动换头像的PHP代码 -已经找到

求当年那个自动换头像的PHP代码

不小心把这个丢了,晕哦,能不能请有的人再发一下,谢谢拉
详见
http://www.phpwind.net/read-htm-tid-182948-keyword-.html


<?php
$url='tx';
$files=array();
if ($handle=opendir("$url")) {
while(false !== ($file = readdir($handle))) {
    if ($file != "." && $file != "..") {
    if(substr($file,-3)=='gif' || substr($file,-3)=='jpg') $files = $file;
    }
}
}
closedir($handle);
$random=rand(0,count($files)-1);
readfile("$url/$files[$random]");
?>

[ 本帖最后由 cxcool 于 2006-6-17 13:50 编辑 ]

suming 发表于 2006 年 6 月 17 日 13:42:15

我也在找啊

中客-斯 发表于 2006 年 6 月 17 日 13:43:18

木有。。不懂代码。

cxcool 发表于 2006 年 6 月 17 日 13:51:30

我找到了,晕.

流行频道 发表于 2006 年 6 月 17 日 14:13:48

呵呵!刷新试试!



http://www.lxpd.net.ru/tx/tx.php
页: [1]
查看完整版本: 求当年那个自动换头像的PHP代码 -已经找到