Yii built-in Captcha basically can meet most requirements, if you have special requirements for verification code, you can customize the CAPTCHA, which is mainly through the extension of ccaptchaaction to achieve, this example to customize a verification code function, randomly generated within 10 of the addition and subtraction, The user needs to calculate the correct results to pass the validation. This example is based on the above example of the Yii Framework Development Tutorial (CAPTCHA) UI component, making the following modifications first create a mathcaptchaaction in the Protected/components directory, Overloaded Generateverifycode,renderimage methods: Class Mathcaptchaactionextends ccaptchaaction{protected function Generateverifycode () {return Mt_ran
1. PHP Development Framework Yii Framework tutorial (UI component Captcha example)
Introduction: Yii Built-in Captcha basically can meet most requirements, if you have special requirements for the verification code, you can customize the CAPTCHA, which
2. PHP Development Framework Yii Framework tutorial (UI component Captcha example)
Introduction: Captcha (Automatic computer and human Turing Test-completely Automated public Turing test to tell Computers and humans Apart, referred to as Captcha) commonly known as verification Code, is a public automatic program that distinguishes users from computers and people. In the CAPTCHA test, a computer that acts as a server automatically generates an issue that is answered by the user. This problem can be generated and judged by a computer, but only humans can answer it. Since the computer is unable to answer the CAPTCHA question, the user who answers the question can be considered human.
"Related question and answer recommendation":