非常实用的php验证码类
(编辑:jimmy 日期: 2025/11/11 浏览:3 次 )
本文实例为大家分享了php验证码类,供大家参考,具体内容如下
<"Content-type: image/gif");
imagegif($this->img_resouce);
}else if(imagetypes() & IMG_JPEG) {
header("Content-type: image/jpeg");
imagejpeg($this->img_resouce);
}else if(imagetypes() & IMG_PNG) {
header("Content-type: image/png");
imagepng($this->img_resouce);
}else {
echo "PHP不支持的类型";
}
}
private function __destruct(){
imagedestroy($this->img_resouce);
}
}
?>
以上就是本文的全部内容,希望对大家的学习有所帮助。
下一篇:thinkphp框架下404页面设置 仅三步