驗證碼 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);
//設置只有數字的驗證碼
首先須要上傳一箇中文的字體文件
//設置中文字符串