1.谷歌类库A <?php namespace Common\Ext; class GoogleAuthenticator { protected $_codeLength = 6; public function createSecret($secretLength = 16) { $validChars = $this->_getBase32LookupTable(
原创 2023-06-23 15:05:23
322阅读
一、实例化生成验证码的类(该方法放到IndexController里面便于访问)[php]/**    * 验证码生成  */  public function verify_c(){      $Verify = new \Think\Verify();      $
转载 精选 2016-07-06 15:23:14
842阅读
thinkphp3.2 验证码生成和点击刷新验证码示例一、实例化生成验证码的类(该方法放到IndexController里面便于访问)/**  *   * 验证码生成  */  public function verify_c(){      $Verify = new \Think\Verify();      $Verify->fontSize 
转载 2023-04-06 15:52:36
169阅读
本人小菜鸟一仅仅。为了自我学习和交流PHP(jquery,linux,lamp,shell,javascript,server)等一系列的知识。小菜鸟创建了一个群。希望光临本博客的人能够进来交流。寻求共同发展。搭建平台。本人博客也有很多的技术文档,希望能够为你提供一些帮助。群: 19184816...
转载 2015-07-18 13:47:00
42阅读
2评论
欢迎使用Markdown编辑器写博客 baidu了一下。发现没有可用的源码,自己想了想,以下的方法可行。 <!DOCTYPE html> <html> <head> <title>点击刷新后自己主动刷新验证码</title> <meta http-equiv="content-type" conte
转载 2017-07-11 19:22:00
118阅读
2评论
http://www.tuicool.com/articles/nQFnQrR 1,sublime text 增强插件 右键可以打开文件目录 http://www.w3cfuns.com/notes/13810/d9b9ed2fb80785dae88a5344ef0f30d4.html 2,thin
转载 2016-10-10 16:22:00
175阅读
2评论
cd /home/wwwroot/default/smart/Public && php cron.php Test/test >> ../logs/cron.log 2>&1 这个命令的意思是,第一步,先进入Public目录下,然后通过php指令,结合cron.php,执行相关的代码。 把执行的结
原创 2021-08-05 15:21:09
366阅读
由于thinkphp3.2使用命名空间,而 PHPExcel没有使用,那么两者整合的最重要问题就是如何导入的问题。 一、PHPExcel.php和PHPExcel文件夹都放在ThinkPHP/Library/Org/Util下,PHPExcel.php修改为PHPExcel.class.php。 二
转载 2016-04-04 12:33:00
119阅读
2评论
控制器代码: public function index(){ $username=I("username"); $order=I("order"); $data=M('users')->where(array('username'=>$username))->order($order)->sele ...
转载 2021-07-23 12:16:00
226阅读
2评论
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');//错误页面define('APP_PATH','./myapp/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件<?phpdefine('DI...
转载 2014-12-04 17:27:00
89阅读
控制器代码: public function index(){ $id=I('id'); $res=M('users')->find($id); dump($res); } 复现: payload: id[table]=users where 1 and updatexml(1,concat(0x7 ...
转载 2021-07-22 17:47:00
454阅读
2评论
    public function verify(){       import("@.ORG.Image");       Image::buildImageVerify(4,1);     } 调用&lt
原创 2010-08-12 21:56:42
558阅读
thinkphp自带验证码 前端页面: 以上验证码如果输入错误提交后不能自动刷新,对代码进行更改后: location.href="/Login/Login";这样只能对整个页面刷新,提交表单的值可能会丢失,非常影响用户体验。 2.如果验证码输入错误,提交后自动刷新验证码。 3.以下为ajax提交验
转载 2016-09-18 14:19:00
255阅读
2评论
IndexController.class.php <?phpnamespace  Home\Controller;use Think\Controller;class IndexController extends Controller {  function index(){       &nbs
原创 2015-03-26 18:18:20
760阅读
首先确保你的电脑已经安装了wamp server,并且已经启动了wamp在浏览器里输入:htt
原创 2022-08-11 17:44:23
223阅读
注意:如果在服务器上显示为空或异常,可以尝试使用ob_clean()或者ob_end_clean() 具体原因我也懒得查
原创 2022-05-31 21:48:24
79阅读
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');define('APP_PATH','./index/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件
转载 2014-12-04 17:30:00
85阅读
2评论
thinkphp3.2 where 条件查询在连贯操作中条件where的操作有时候自己很晕,所以整理下,有助于使用查询条件 支持的表达式查询,
原创 2022-10-12 15:43:05
128阅读
thinkphp3.2 开发环境搭建
原创 2017-03-15 18:29:25
2148阅读
第一步 :下载附件PHPMailer解压到ThinkPHP\Library\Vendor 第二步:在Common文件夹中的公共函数function.php中写一个发送邮件的函数, 这样可以在项目任意位置调用。 /** * 邮件发送函数 */ function sendMail($to, $title
原创 2021-07-09 15:09:56
237阅读
  • 1
  • 2
  • 3
  • 4
  • 5