Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)归海一刀
published in(发表于) 2014/2/10 6:52:26
图片直读代码_[PHP教程]

图片直读代码_[PHP教程]

保存为index.php放在你的图片目录里面

PHP源码:



imgtype=array(bmp,jpg,jpeg,png,gif);
/****************************************************/
imgtype_count=count(imgtype);
path=".";
handle=opendir(path);
while (file = readdir(handle)){

if (is_dir(file)) {continue;}
type = explode(".",file);
type = type[1];

for(i=0;iif(type==imgtype[i]){echo"150) {this.height=150;this.width=150*this.width/this.height;}\">\n";}
}
}
closedir(handle);
/****************************************************/
?>






If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759