$this->createAction('captcha')->getVerifyCode(); //获取当前验证码的值当前页面url echo Yii::app()->request->url;跳转前一个页面url $this->redirect(Yii::app()->request->urlR...
分类:
其他好文 时间:
2014-07-09 17:00:58
阅读次数:
155
继续总结与编程相关的技术,今天总结的是大学期间关于验证码技术的一个小示例:...
分类:
其他好文 时间:
2014-07-08 13:56:49
阅读次数:
155
之前遇到的第一个问题是,使用php生成文字验证码时,总提示:Warning: imagettftext(): Could not find/open font in /var/www/html/touming.php on line 11或者The image "http://localhost/i...
分类:
Web程序 时间:
2014-07-07 10:49:21
阅读次数:
206
1.yii验证码多余的get a new code ,即使在main.php中配置了中文也是出现获取新图片,影响效果需要把widget('CCaptcha'); ?> 改成widget('CCaptcha',array('showRefreshButton'=>false,'clickableIma...
分类:
其他好文 时间:
2014-07-07 00:55:02
阅读次数:
168
ci 之验证码为了方便,把 system/system/helpers/captcha_helper.php复制放在 application/helpers/文件夹里面手册上面推荐用数据库,但个人认为用 $_SESSION方便些(session必须开启)打开 application/helpers/...
分类:
其他好文 时间:
2014-07-06 15:53:20
阅读次数:
191
最近公司的项目的登陆模块由我负责,所以就做了个登陆小功能进行练手,其包括了用jQuery对用户名和密码进行不为null验证,和出于安全性考虑加了一个验证码的校验别的不说先上代码controller层CreateImage.javapackage com.controller;import java....
分类:
编程语言 时间:
2014-07-05 18:51:17
阅读次数:
346
在贴代码之前首先简述一下验证验证码原理:随机获取验证码的值,把这个值存到session中,其作用可想而知就是要拿来跟前台数据作比较,通过Graphics将值进行模糊处理之后传到前台页面展示。 1 package com.skss.util; 2 3 4 import java.awt.C...
分类:
其他好文 时间:
2014-07-05 18:46:12
阅读次数:
184
@1.验证码 1 captcher.php 2 header('Content-type:image/png'); 3 session_start(); 4 $img = imagecreate(100, 30); 5 $captcha = array( 6 'a', 'b', 'c', '...
分类:
Web程序 时间:
2014-07-03 23:42:31
阅读次数:
461