图片直读代码
时间:2008-05-29 来源:剑心通明
保存为index.php放在你的图片目录里面中国站长资讯网。
php程序员站
以下为引用的内容:
/****************************************************/ php程序员站
$imgtype_count=count($imgtype);
$path=".";
$handle=opendir($path);
while ($file = readdir($handle)){
if (is_dir($file)) {continue;} www.phperz.com
$type = explode(".",$file);
$type = $type[1];
for($i=0;$i++){
if($type==$imgtype[$i]){echo"150) {this.height=150;this.width=150*this.width/this.height;}\">\n";}
phperz~com
}
}
closedir($handle);
/****************************************************/
?>
相关阅读 更多 +