调用方法:
此代码可以为大图片动态生成缩略图显示,图片在内存中生成,不在硬盘生成真实文件
thumbs.php文件如下:
<?php$filename= $_get['filename'];$width = $_get['width'];$height = $_get['height'];$path=http://localhost/images/; //finish in /// content typeheader('content-type: image/jpeg');// get new dimensionslist($width_orig, $height_orig) = getimagesize($path.$filename);if ($width && ($width_orig
希望本文所述对大家的php程序设计有所帮助。
