有字体的验证码

时间:2020-11-18 04:24:46
【文件属性】:
文件名称:有字体的验证码
文件大小:7.93MB
文件格式:RAR
更新时间:2020-11-18 04:24:46
验证码 php 可直接用 带字体 //实现混合验证码(数字+字母) for($i=0;$i<4;$i++){//i验证码数 $fontsize=6;//字体大小 rand()-随机产生数 $fontcolor=imagecolorallocate($image,rand(0,120),rand(0,120),rand(0,120));//字体颜色 $data='abcdefghijklmnopqrstuvwxyz1234567890'; $fontcontent=substr($data,rand(0,strlen($data)),1);//取值范围,随机产生一个字符 //substr()随机取出一个字符 strlen()计算长度 $captch_code.="$fontcontent"; //范围坐标 $x=($i*100/4)+rand(5,10); $y=rand(5,10); //水平输出验证码 imagestring($image,$fontsize,$x,$y,$fontcontent,$fontcolor); }
【文件预览】:
code.php
form.php
带字体验证码
----yzmshili.php(761B)
----reg.php(279B)
----29yanzhengma.php(901B)
----ms.ttf(13.93MB)

网友评论