? & Lt;? Php
namepace adminController; Use ThinkController; Use ThinkVerify; Class Logincontroller Extends Controller ogin () {(if (! Empty ($ _ post)) { $ $ vry = new Verfiy (); Public function verfiyImage(){'imageH' => 45, //Verification code image height
100, //Verification code image width
gt;4, //The length of the verification code
'fontttf' => '2.ttf', //Verification code font
} }//Instantiate the verify class
//Output verification code$ Very -& gt; entry (); // Output verification code}
& ltml page & lt; img src = "{$ Smarty.const ._____}/verfiyImage/'+ Math.rondom()">
The above introduces the use of verification code verification in tp, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.