Codeigniter入門學習筆記13—驗證碼操做

  • 好久好久之前學習Codeigniter的筆記記錄,很隨意,但都是本身記錄的,但願對須要的人有所幫助。
  • 本文使用word2013編輯併發布
  • Postbird | There I am , in the world more exciting!
  • Postbird personal website : http://www.ptbird.cn

    驗證碼 web

一、須要手動建立 session

    img_path 配置文件 併發

2.view 學習

三、controllers 字體

 

四、確認開啓GD庫 spa

if(extension_loaded('gd')){ blog

                echo "asdasdadddddd"; ci

            } 字符串

五、expiration get

    以秒計算 是指下次生成的時候刪除過期的,不過自動刪除,須要觸發

六、經過session記錄驗證碼

    session_start();

    $_SESSION['cap']=$cap['word'];

7

    'word'=>rand(1000,1000);

        //設置只有數字的驗證碼

    首先須要上傳一箇中文的字體文件    

    //設置中文字符串

相關文章
相關標籤/搜索