电脑安全

您当前的位置:主页 > 电脑安全 >

PHP汉字验证码的实现-网络编程

来源:[db:来源]标题:   会有    编辑:电脑技术全能网 时间:2019-09-18 16:49

原标题:PHP汉字验证码的实现-网络编程
   <?php/** 文件:chinesechar.php* 感化:汉字数据贮存* 作者:PHP实战群:33918040 - 鱼尾独一* 网址:http://bbs.ailf.cn/ http://www.fishwei.com/* 特注:版权全部转载说明出处!有支付才会有播种! */$ChineseChar = array("人","出","来","友","学","孝","仁","义","礼","廉","忠","国","中","易","白","者","火 ","土","金","木","雷","风","龙","虎","天","地", "生","晕","菜","鸟","田","三","百","钱","福 ","爱","情","兽","虫","鱼","九","网","新","度","哎","唉","啊","哦","仪","老","少","日", "月 ","星");?><?php/** 文件:check.php* 感化:考证* 作者:PHP实战群:33918040 - 鱼尾独一* 网址:http://bbs.ailf.cn/ http://www.fishwei.com/* 特注:版权全部转载说明出处!有支付才会有播种! */session_start();$errorMSG = '''';//考证用户输出能否和考证码分歧if(!is_null($_POST[''check''])){ if (strcasecmp($_SESSION[''code''],$_POST[''code''])==0) $errorMSG = "<p style="font-size:12px