thinkphp3.2怎么弄验证码验证?求完整代码 20
2016-06-20
展开全部
public function verity_c()
{
$Verify = new \Think\Verify();
//验证码格式
$Verify->fontSize = 14;
$Verify->length = 4;
$Verify->useNoise = false;
//$Verify->fontttf = '5.ttf';
$Verify->imageW = 100;
$Verify->imageH = 33;
//$Verify->expire = 600;
$Verify->entry();//验证码生成
}
{
$Verify = new \Think\Verify();
//验证码格式
$Verify->fontSize = 14;
$Verify->length = 4;
$Verify->useNoise = false;
//$Verify->fontttf = '5.ttf';
$Verify->imageW = 100;
$Verify->imageH = 33;
//$Verify->expire = 600;
$Verify->entry();//验证码生成
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询