教你php如何实现验证码

前端之家收集整理的这篇文章主要介绍了教你php如何实现验证码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

验证码在表单实现越来越多了,但是用js的写的验证码,总觉得不方便,所以学习了下PHP实现的验证码。好吧,其实是没有事情干,但是又不想浪费时间,所以学习了下PHP实现验证码。正所谓,技多不压身。而且,也可以封装成一个函数,以后使用的时候也是很方便的,当然现在未封装。

现在来说说简单的纯数字验证码吧。

如果是初学者,建议按照我代码的注释 //数字 一步步来。最简单的方法,还是把整个代码复制走了。

新建一个captcha.PHP

设置session,必须处于脚本最顶部 session_start();

$image = imagecreatetruecolor(100,30); //1>设置验证码图片大小的函数
//5>设置验证码颜色 imagecolorallocate(int im,int red,int green,int blue);
$bgcolor = imagecolorallocate($image,255,255); //#ffffff
//6>区域填充 int imagefill(int im,int x,int y,int col) (x,y) 所在的区域着色,col 表示欲涂上的颜色
imagefill($image,$bgcolor);
//10>设置变量
$captcha_code = "";
//7>生成随机数字
for($i=0;$i<4;$i++){
//设置字体大小
$fontsize = 6;
//设置字体颜色,随机颜色
$fontcolor = imagecolorallocate($image,rand(0,120),120)); //0-120深颜色
//设置数字
$fontcontent = rand(0,9);
//10>.=连续定义变量
$captcha_code .= $fontcontent;
//设置坐标
$x = ($i*100/4)+rand(5,10);
$y = rand(5,10);

imagestring($image,$fontsize,$x,$y,$fontcontent,$fontcolor);

}
//10>存到session
$_SESSION['authcode'] = $captcha_code;
//8>增加干扰元素,设置雪花点
for($i=0;$i<200;$i++){
//设置点的颜色,50-200颜色比数字浅,不干扰阅读
$pointcolor = imagecolorallocate($image,rand(50,200),200));
//imagesetpixel — 画一个单一像素
imagesetpixel($image,rand(1,99),29),$pointcolor);
}
//9>增加干扰元素,设置横线
for($i=0;$i<4;$i++){
//设置线的颜色
$linecolor = imagecolorallocate($image,rand(80,220),220));
//设置线,两点一线
imageline($image,$linecolor);
}

//2>设置头部,image/png
header('Content-Type: image/png');
//3>imagepng() 建立png图形函数
imagepng($image);
//4>imagedestroy() 结束图形函数 销毁$image
imagedestroy($image);

接着就是静态页的代码了:index.html 

<Meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 确认验证码title> head> <body> <form method="post" action="./form.<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>"> <p>验证码: <img id="captcha_img" border='1' src='./captcha.php?r=echo rand(); ?>' style="width:100px; height:30px" /> <a href="javascript:void(0)" onclick="document.getElementById('captcha_img').src='./captcha.php?r='+Math.random()">换一个?a> p> <P>请输入验证码:<input type="text" name='authcode' value=''/>p> <p><input type='submit' value='提交' style='padding:6px 5px;'/>p> </body> </html> </pre> </div> <p>从index.html可以看到,提交的表单是到form.<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>的,所以还要有一个判断的form.<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a><a href="https://www.jb51.cc/tag/daima/" target="_blank" class="keywords">代码</a>:</p> <div class="jb51code"> <pre class="brush:<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a> header("Content-Type:text/html;charset=utf-8"); //设置头部信息 //isset()检测变量是否设置 if(isset($_REQUEST['authcode'])){ session_start(); //strtolower()小写<a href="https://www.jb51.cc/tag/hanshu/" target="_blank" class="keywords">函数</a> if(strtolower($_REQUEST['authcode'])== $_SESSION['authcode']){ //@R_848_<a href="https://www.jb51.cc/tag/404/" target="_blank" class="keywords">404</a>@面 echo "<script language=\"javascript\">"; echo "document.location=\"./form.<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>\""; echo "</script>"; }else{ //<a href="https://www.jb51.cc/tag/tishi/" target="_blank" class="keywords">提示</a>以及@R_848_<a href="https://www.jb51.cc/tag/404/" target="_blank" class="keywords">404</a>@面 echo "<script language=\"javascript\">"; echo "alert('输入<a href="https://www.jb51.cc/tag/cuowu/" target="_blank" class="keywords">错误</a>!');"; echo "document.location=\"./form.<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>\""; echo "</script>"; } exit(); } </pre> </div> <p><a href="https://www.jb51.cc/tag/xianshi/" target="_blank" class="keywords">显示</a><a href="https://www.jb51.cc/tag/yemian/" target="_blank" class="keywords">页面</a>如下: </p> <p style="text-align: center"><img id="theimg" alt="" onclick="window.open(this.src)" src="https://files.jb51.cc/file_images/article/201601/2016120102030634.jpg?2016020102037" /></p> <p>那么,纯数字的实现了,数字加英文的也应该不难了。要<a href="https://www.jb51.cc/tag/xiugai/" target="_blank" class="keywords">修改</a>的<a href="https://www.jb51.cc/tag/daima/" target="_blank" class="keywords">代码</a> 只是在 captcha.<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a> 将 //7><a href="https://www.jb51.cc/tag/shengcheng/" target="_blank" class="keywords">生成</a><a href="https://www.jb51.cc/tag/suiji/" target="_blank" class="keywords">随机</a>数字 <a href="https://www.jb51.cc/tag/xiugai/" target="_blank" class="keywords">修改</a>成 //7><a href="https://www.jb51.cc/tag/shengcheng/" target="_blank" class="keywords">生成</a><a href="https://www.jb51.cc/tag/suiji/" target="_blank" class="keywords">随机</a>的字母和数字,如果你真的很可爱的就<a href="https://www.jb51.cc/tag/xiugai/" target="_blank" class="keywords">修改</a>这几个字就认为可以实现的话,那么祝贺你,你永远保持快乐。脑残儿童欢乐多。</p> <p>废话不多说了,拉<a href="https://www.jb51.cc/tag/daima/" target="_blank" class="keywords">代码</a>吧。</p> <div class="jb51code"> <pre class="brush:php;"> php //10>设置session,$bgcolor); //10>设置变量 $captcha_code = ""; //7><a href="https://www.jb51.cc/tag/shengcheng/" target="_blank" class="keywords">生成</a><a href="https://www.jb51.cc/tag/suiji/" target="_blank" class="keywords">随机</a>的字母和数字 for($i=0;$i<4;$i++){ //设置字体大小 $fontsize = 8; //设置字体颜色,随机颜色 $fontcolor = imagecolorallocate($image,120)); //0-120深颜色 //设置需要随机取的值,去掉容易出错的值如0和o $data ='abcdefghigkmnpqrstuvwxy3456789'; //取出值,字符串截取方法 strlen获取字符串长度 $fontcontent = substr($data,strlen($data)),1); //10>.=连续定义变量 $captcha_code .= $fontcontent; //设置坐标 $x = ($i*100/4)+rand(5,$linecolor); } <p>//2>设置头部,image/png<br /> header('Content-Type: image/png');<br /> //3>imagepng() 建立png图形<a href="https://www.jb51.cc/tag/hanshu/" target="_blank" class="keywords">函数</a><br /> imagepng($image);<br /> //4>imagedestroy() 结束图形<a href="https://www.jb51.cc/tag/hanshu/" target="_blank" class="keywords">函数</a> 销毁$image<br /> imagedestroy($image);</p> </pre> </div> <p>其他的两个<a href="https://www.jb51.cc/tag/yemian/" target="_blank" class="keywords">页面</a>,不许要<a href="https://www.jb51.cc/tag/xiugai/" target="_blank" class="keywords">修改</a>。</p> <p style="text-align: center"><p class="pic_center"><img id="theimg" alt="" onclick="window.open(this.src)" src="https://files.jb51.cc/file_images/article/201601/2016120102055355.png?201602010211" /></p></p> <p>一般而言,现在就已经够用了。但是就像动漫一样,总会有番外。</p> <p>那么,我们来个汉字的番外吧。其实我也准备将汉字的验证码放到我的毕业设计里面,虽然现在很流行滑动验证码,但是本人毕竟不是专门学习js的。</p> <p>而且,还可以和答辩的老师说,我们验证码不需要素材,连<a href="https://www.jb51.cc/tag/tupian/" target="_blank" class="keywords">图片</a>也是<a href="https://www.jb51.cc/tag/shengcheng/" target="_blank" class="keywords">生成</a>的,用自己的知识装13,也没有设么的。</p> <div class="jb51code"> <pre class="brush:php;"> php //11>设置session,必须处于脚本最顶部 session_start(); <p>//1>设置验证码<a href="https://www.jb51.cc/tag/tupian/" target="_blank" class="keywords">图片</a>大小的<a href="https://www.jb51.cc/tag/hanshu/" target="_blank" class="keywords">函数</a><br /> $image = imagecreatetruecolor(200,60);<br /> //5>设置验证码颜色 imagecolorallocate(int im,$bgcolor);<br /> //7>设置ttf字体<br /> $fontface = 'FZYTK.TTF';<br /> //7>设置字库,实现简单的数字储备<br /> $str='天地不仁以万物为刍狗圣人不仁以百姓为刍狗这句经常出现在控诉暴君暴政上地残暴不仁把万物都当成低贱的猪狗来看待而那些高高在上的所谓圣人们也没两样还不是把我们老百姓也当成猪狗不如的东西但实在正取的解读是地不情感用事对万物一视同仁圣人不情感用事对百姓一视同仁执子之手与子偕老当男女主人公含情脉脉看着对方说了句执子之手与子偕老女方泪眼朦胧含羞地回一句讨厌啦这样的情节我们是不是见过很多但是我们来看看这句的原句死生契阔与子成说执子之手与子偕老于嗟阔兮不我活兮于嗟洵兮不我信兮意思是说战士之间的约定说要一起死现在和我约定的人都走了我怎么活啊赤裸裸的兄弟江湖战友友谊啊形容好基友的基情比男女之间的爱情要合适很多吧';<br /> //str_split()切割字符串为一个数组,一个<a href="https://www.jb51.cc/tag/zhongwen/" target="_blank" class="keywords">中文</a>在utf_8为3个字符<br /> $strdb = str_split($str,3);<br /> //>11<br /> $captcha_code = '';<br /> //8><a href="https://www.jb51.cc/tag/shengcheng/" target="_blank" class="keywords">生成</a><a href="https://www.jb51.cc/tag/suiji/" target="_blank" class="keywords">随机</a>的汉子<br /> for($i=0;$i<4;$i++){<br /> //设置字体颜色,随机颜色<br /> $fontcolor = imagecolorallocate($image,120)); //0-120深颜色<br /> //随机选取中文<br /> $in = rand(0,count($strdb));<br /> $cn = $strdb[$in];<br /> //将中文记录到将保存到session的字符串中<br /> $captcha_code .= $cn;<br /> /<em>imagettftext (resource $image,float $size,float $angle,int $x,int $y,int $color,string $fontfile,string $text ) 幕布 ,尺寸,角度,坐标,颜色,字体路径,文本字符串<br /> mt_rand()生成更好的随机数,比rand()快四倍</em>/<br /> imagettftext($image,mt_rand(20,24),mt_rand(-60,60),(40*$i+20),mt_rand(30,35),$fontcolor,$fontface,$cn);<br /> }<br /> //11>存到session<br /> $_SESSION['authcode'] = $captcha_code;<br /> //9><a href="https://www.jb51.cc/tag/zengjia/" target="_blank" class="keywords">增加</a>干扰元素,设置点<br /> for($i=0;$i<200;$i++){<br /> //设置点的颜色,50-200颜色比数字浅,不干扰阅读<br /> $pointcolor = imagecolorallocate($image,199),59),$pointcolor);<br /> }<br /> //10><a href="https://www.jb51.cc/tag/zengjia/" target="_blank" class="keywords">增加</a>干扰元素,设置线<br /> for($i=0;$i@H_<a href="https://www.jb51.cc/tag/403/" target="_blank" class="keywords">403</a>_69@设置头部,image/png<br /> header('Content-Type: image/png');<br /> //3>imagepng() 建立png图形<a href="https://www.jb51.cc/tag/hanshu/" target="_blank" class="keywords">函数</a><br /> imagepng($image);<br /> //4>imagedestroy() 结束图形<a href="https://www.jb51.cc/tag/hanshu/" target="_blank" class="keywords">函数</a> 销毁$image<br /> imagedestroy($image);</p> </pre> </div> <p><a href="https://www.jb51.cc/tag/xiaoguo/" target="_blank" class="keywords">效果</a>图如下</p> <p style="text-align: center"><p class="pic_center"><img id="theimg" alt="" onclick="window.open(this.src)" src="https://files.jb51.cc/file_images/article/201601/2016120102115075.png?2016020102125" /></p></p> <p style="text-align: left">以上就是本文的全部<a href="https://www.jb51.cc/tag/neirong/" target="_blank" class="keywords">内容</a>,帮助大家实现<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>数字验证码、<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>字母验证码、<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a>汉字验证码,希望对大家的学习有所帮助。</p><i class="glyphicon glyphicon-link"></i> 原文链接:https://www.f2er.com/php/20478.html</div> <div class="topcard-tags"><a href="https://www.f2er.com/tag/phpzimuyanzhengma/" class="tag_link" target="_blank">php字母验证码</a><a href="https://www.f2er.com/tag/phpshuziyanzhengma/" class="tag_link" target="_blank">php数字验证码</a><a href="https://www.f2er.com/tag/phpyiziyanzhengma/" class="tag_link" target="_blank">php汉字验证码</a><a href="https://www.f2er.com/tag/phpyanzhengma/" class="tag_link" target="_blank">php验证码</a></div> <ul class="list-group"> <li class="list-group-item"><a href="https://www.f2er.com/php/20479.html" title="CodeIgniter辅助之第三方类库third_party用法分析">上一篇:CodeIgniter辅助之第三方类库third</a><a href="https://www.f2er.com/php/20477.html" title="CI(CodeIgniter)模型用法实例分析" class="text-muted pull-right">下一篇:CI(CodeIgniter)模型用法实例分析</a> </li> </ul> </div> </div> </div> <!-- row end --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4605373693034661" data-ad-slot="9144498553"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> </div> </div> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <div class="title"><h1>猜你在找的PHP相关文章</h1></div> <div class="list_con"> <a href="https://www.f2er.com/php/997740.html" title="Hessian通讯协议【附PHP源代码】"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-22/19/361df348b2385424b031f281e9807f35.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Hessian通讯协议【附PHP源代码】</div> <div class="summary">Hessian开源的远程通讯,采用二进制 RPC的协议,基于 HTTP 传输。可以实现PHP调用Java,Pyt...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997739.html" title="初识Mongodb总结"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-22/19/b4d39ef6acdce4fc3ef2fe713961a4c2.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb总结</div> <div class="summary">初识Mongodb的一些总结,在Mac Os X下真实搭建mongodb环境,以及分享个Mongodb管理工具,学习...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997738.html" title="初识Mongodb之[CURD]-PHP版"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-22/19/d009a8111c246e74506457f4b9a3356b.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb之[CURD]-PHP版</div> <div class="summary">边看边操作,这样才能记得牢,实践是检验真理的唯一标准.光看不练假把式,光练不看傻把式,边看...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997665.html" title="php学习日志 - echo&print"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-21/08/daa4210b68d9838740e9ea77a21307fa.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">php学习日志 - echo&print</div> <div class="summary">在php中,结果输出一共有两种方式:echo和print,下面将对两种方式做一个比较。 echo与pri...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-21/08/eb187c62ac0c80d6e2af301e5b85d7cf.jpg" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">The mbstring extension is missing. Please check your PHP configuration错误及解决方法</div> <div class="summary">在安装好wampServer后,一直没有使用phpMyAdmin,今天用了一下,phpMyAdmin显示错误:The m...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><div class="list_con"> <a href="https://www.f2er.com/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-21/08/3dba7c0e337113c18e0d271e31375f92.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常</div> <div class="summary">以前用Windows Live Writer写日志都好好的,前几天用写完日志,点击发布,突然弹出意外错误...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统"><div class="title">在PHP项目中使用Standford Moss代码查重系统</div> <div class="summary">Standford Moss 系统是斯坦福大学大名鼎鼎的代码查重系统,它可以查出哪些同学提交的代码是...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997490.html" title="Windows下PHP安全环境的搭建"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-18/10/ae3043a3f014e5fde5c29d0449149db0.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Windows下PHP安全环境的搭建</div> <div class="summary">笔者一直在Windows环境下搭建PHP的运行环境,大大小小的运行环境用过不少,从开始的WAMP到...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息"><div class="title">ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息</div> <div class="summary">在作业管理系统中,学生登陆到个人中心后可以通过左侧的菜单查看自己已经提交的作业和未提...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997488.html" title="ThinkPHP5项目目录规划实践"><div class="title">ThinkPHP5项目目录规划实践</div> <div class="summary">ThinkPHP5安装后(或者下载后的压缩文件解压后)可以看到下面的目录结构: 一般的信息管理...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div> </div> </div> </div> <!-- left end--> <!-- right --> <div class="col-sm-12 col-md-12 col-lg-3"> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">编程分类</label> <div class="cate mt-20"><a href="https://www.f2er.com/php/" title="PHP">PHP</a><a href="https://www.f2er.com/java/" title="Java">Java</a><a href="https://www.f2er.com/javase/" title="Java SE">Java SE</a><a href="https://www.f2er.com/python/" title="Python">Python</a><a href="https://www.f2er.com/csharp/" title="C#">C#</a><a href="https://www.f2er.com/c/" title="C&C++">C&C++</a><a href="https://www.f2er.com/ruby/" title="Ruby">Ruby</a><a href="https://www.f2er.com/vb/" title="VB">VB</a><a href="https://www.f2er.com/aspnet/" title="asp.Net">asp.Net</a><a href="https://www.f2er.com/go/" title="Go">Go</a><a href="https://www.f2er.com/Perl/" title="Perl">Perl</a><a href="https://www.f2er.com/netty/" title="netty">netty</a><a href="https://www.f2er.com/django/" title="Django">Django</a><a href="https://www.f2er.com/delphi/" title="Delphi">Delphi</a><a href="https://www.f2er.com/jsp/" title="Jsp">Jsp</a><a href="https://www.f2er.com/netcore/" title=".NET Core">.NET Core</a><a href="https://www.f2er.com/spring/" title="Spring">Spring</a><a href="https://www.f2er.com/flask/" title="Flask">Flask</a><a href="https://www.f2er.com/springboot/" title="Springboot">Springboot</a><a href="https://www.f2er.com/springmvc/" title="SpringMVC">SpringMVC</a><a href="https://www.f2er.com/lua/" title="Lua">Lua</a><a href="https://www.f2er.com/laravel/" title="Laravel">Laravel</a><a href="https://www.f2er.com/mybatis/" title="Mybatis">Mybatis</a><a href="https://www.f2er.com/asp/" title="Asp">Asp</a><a href="https://www.f2er.com/groovy/" title="Groovy">Groovy</a><a href="https://www.f2er.com/thinkphp/" title="ThinkPHP">ThinkPHP</a><a href="https://www.f2er.com/yii/" title="Yii">Yii</a><a href="https://www.f2er.com/swoole/" title="swoole">swoole</a><div class="clearfix"></div> </div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">最新文章</label> <ul class="n-list"><li><a href="https://www.f2er.com/php/997740.html" title="Hessian通讯协议【附PHP源代码】" target="_blank">• Hessian通讯协议【附PHP源</a></li> <li><a href="https://www.f2er.com/php/997739.html" title="初识Mongodb总结" target="_blank">• 初识Mongodb总结</a></li> <li><a href="https://www.f2er.com/php/997738.html" title="初识Mongodb之[CURD]-PHP版" target="_blank">• 初识Mongodb之[CURD]-PHP版</a></li> <li><a href="https://www.f2er.com/php/997665.html" title="php学习日志 - echo&print" target="_blank">• php学习日志 - echo&p</a></li> <li><a href="https://www.f2er.com/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法" target="_blank">• The mbstring extension i</a></li> <li><a href="https://www.f2er.com/php/997663.html" title="php学习日志 - php变量" target="_blank">• php学习日志 - php变量</a></li> <li><a href="https://www.f2er.com/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常" target="_blank">• 解决Windows Live Writer错</a></li> <li><a href="https://www.f2er.com/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统" target="_blank">• 在PHP项目中使用Standford</a></li> <li><a href="https://www.f2er.com/php/997490.html" title="Windows下PHP安全环境的搭建" target="_blank">• Windows下PHP安全环境的搭</a></li> <li><a href="https://www.f2er.com/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息" target="_blank">• ThinkPHP5作业管理系统中处</a></li> </ul> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">热门标签 <span class="pull-right tx-12"> <a href="https://www.f2er.com/all" target="_blank">更多 ►</a></span> </label> <div class="topcard-tags"><a href="https://www.f2er.com/tag/wenjianshijian/" title="文件时间" target="_blank">文件时间</a><a href="https://www.f2er.com/tag/pythonm/" title="pythonm" target="_blank">pythonm</a><a href="https://www.f2er.com/tag/xiangdengxing/" title="相等性" target="_blank">相等性</a><a href="https://www.f2er.com/tag/PHPWarning/" title="PHP Warning" target="_blank">PHP Warning</a><a href="https://www.f2er.com/tag/shijianwenti/" title="时间问题" target="_blank">时间问题</a><a href="https://www.f2er.com/tag/wentijiejue/" title="问题解决" target="_blank">问题解决</a><a href="https://www.f2er.com/tag/pcntlsignal/" title="pcntl_signal()" target="_blank">pcntl_signal</a><a href="https://www.f2er.com/tag/caiyangdian/" title="采样点" target="_blank">采样点</a><a href="https://www.f2er.com/tag/wavmokuai/" title="wav模块" target="_blank">wav模块</a><a href="https://www.f2er.com/tag/dongtaiwenben/" title="动态文本" target="_blank">动态文本</a><a href="https://www.f2er.com/tag/diaoyongpinlvxianzhi/" title="调用频率限制" target="_blank">调用频率限制</a><a href="https://www.f2er.com/tag/duiwaibaolu/" title="对外暴露" target="_blank">对外暴露</a><a href="https://www.f2er.com/tag/duogefangwenqingqiu/" title="多个访问请求" target="_blank">多个访问请求</a><a href="https://www.f2er.com/tag/gengxinshujubiao/" title="更新数据表" target="_blank">更新数据表</a><a href="https://www.f2er.com/tag/moxingjiegou/" title="模型结构" target="_blank">模型结构</a><a href="https://www.f2er.com/tag/typefangfa/" title="type()方法" target="_blank">type()方法</a><a href="https://www.f2er.com/tag/bijiaosudu/" title="比较速度" target="_blank">比较速度</a><a href="https://www.f2er.com/tag/shouxieti/" title="手写体" target="_blank">手写体</a><a href="https://www.f2er.com/tag/sobelsuanzi/" title="sobel算子" target="_blank">sobel算子</a><a href="https://www.f2er.com/tag/baocunmoxing/" title="保存模型" target="_blank">保存模型</a><a href="https://www.f2er.com/tag/Imagelei/" title="Image类" target="_blank">Image类</a><a href="https://www.f2er.com/tag/nnConv2d/" title="nn.Conv2d" target="_blank">nn.Conv2d</a><a href="https://www.f2er.com/tag/pytorch10/" title="pytorch1.0" target="_blank">pytorch1.0</a><a href="https://www.f2er.com/tag/kaggle/" title="kaggle" target="_blank">kaggle</a><a href="https://www.f2er.com/tag/DCGAN/" title="DCGAN" target="_blank">DCGAN</a><a href="https://www.f2er.com/tag/jiaobingbi/" title="交并比" target="_blank">交并比</a><a href="https://www.f2er.com/tag/rangeyongfa/" title="range()用法" target="_blank">range()用法</a><a href="https://www.f2er.com/tag/dayinmoxing/" title="打印模型" target="_blank">打印模型</a><a href="https://www.f2er.com/tag/fanjuanji/" title="反卷积" target="_blank">反卷积</a><a href="https://www.f2er.com/tag/juanji/" title="卷积" target="_blank">卷积</a></div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> </div> <!-- right end --> </div> </div> <footer id="footer"> <div class="container"> <div class="row hidden-xs"> <dl class="col-sm-6 site-link"> <dt>最近更新</dt><dd><a href="https://www.f2er.com/win11/1005878.html" title="【联想一体机系统重装指南】" target="_blank">· 【联想一体机系统重装指南】</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005877.html" title="笔记本系统重装教程:轻松解决系统问题" target="_blank">· 笔记本系统重装教程:轻松解决系统问题</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005876.html" title="重装系统:U盘启动,轻松搞定!" target="_blank">· 重装系统:U盘启动,轻松搞定!</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005875.html" title="大白菜u盘重装系统,让你的电脑焕然一新!" target="_blank">· 大白菜u盘重装系统,让你的电脑焕然一新!</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005874.html" title="U盘重装系统:轻松启动,快速恢复" target="_blank">· U盘重装系统:轻松启动,快速恢复</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005873.html" title="重装电脑系统的步骤及注意事项" target="_blank">· 重装电脑系统的步骤及注意事项</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005872.html" title="深度重装系统,一键解决电脑问题" target="_blank">· 深度重装系统,一键解决电脑问题</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005871.html" title="重装系统的正确操作步骤,让你的电脑焕然一新" target="_blank">· 重装系统的正确操作步骤,让你的电脑焕然一新</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005870.html" title="安全模式重装系统:保障您设备安全的最佳选择" target="_blank">· 安全模式重装系统:保障您设备安全的最佳选择</a><span class="text-muted pull-right">10-03</span></dd> <dd><a href="https://www.f2er.com/win11/1005869.html" title="戴尔重装系统步骤大全" target="_blank">· 戴尔重装系统步骤大全</a><span class="text-muted pull-right">10-03</span></dd> </dl> <dl class="col-sm-4 site-link"> <dt>好站推荐</dt><dd> <a href="https://www.runoob.com" title="菜鸟教程(www.runoob.com)提供了编程的基础技术教程, 介绍了HTML、CSS、Javascript、Python,Java,Ruby,C,PHP , MySQL等各种编程语言的基础知识。 同时本站中也提供了大量的在线实例,通过实例,您可以更好的学习编程。" target="_blank">菜鸟教程</a></dd><dd> <a href="https://www.jb51.cc" title="编程之家(www.jb51.cc)是成立于2017年面向全球中文开发者的技术内容分享平台。提供编程导航、编程问答、编程博文、编程百科、编程教程、编程工具、编程实例等开发者最需要的编程技术内容与开发工具支持,与你一起学习编程,相信编程改变未来!" target="_blank">编程之家</a></dd><dd> <a href="https://www.f2er.com" title="前端之家 f2er.com 前端开发人员所需学习知识手册。" target="_blank">前端之家</a></dd></dl> <dl class="col-sm-2 site-link"> <dt>商务合作</dt> <dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=76874919&site=qq&menu=yes">联系我们</a></dd> </dl> </div> <div class="copyright"> Copyright © 2019 前端之家. 当前版本 V7.0.16<br> <span class="ml5">前端之家 版权所有 <a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">闽ICP备13020303号-10</a></span> </div> </div> </footer> <script type="text/javascript" src="https://www.f2er.com/js/base.js"></script> </body> </html>