The PHP verification code tool-Securimage, read the PHP verification code tool-Securimage. Recently, a new php verification code tool-Securimage was introduced in the project, which is very simple and convenient to use and supports ajax calls, therefore, I would like to recommend it to you here. What is Securimage? Securimage is an open-source/free phpCAPTCHA script. ">
Recently, a new php verification code tool, Securimage, was introduced in the project. it is very simple and convenient to use and supports ajax calling. Therefore, we recommend it here.
What is Securimage?
Securimage is an open-source/free phpCAPTCHA script that can be used to generate complex verification code images to help your website prevent spam. It can be easily embedded into existing forms of the website to provide spam robot protection for your website. It can run on most webservers that support php (GD.
* Click here to view the quick guide
* Securimage instance
* Download the latest version.
Securimage features:
* Only three lines of code can be used to display the verification code.
* The verification code can be entered with only six lines of code.
* Custom Verification code length
* Custom character set
* Supports TTF.
* Use a custom GD font (if not supported by TTF)
* Easily add custom background images
* Rich text support, including color/angle/transparency options
* Text character disorder Arched lines through text
* Generate CAPTCHA audio files in wav format
* Custom CAPTCHA verification code list
The following is a simple example:
Securimage Test Form
If (empty ($ _ POST) {?>
} Else {// form is posted
Include ("securimage. php ");
$ Img = new Securimage ();
$ Valid = $ img-> check ($ _ POST ['code']); // check whether the user input is correct
If ($ valid = true ){
Echo"
Thanks, you entered the correct code. ";
} Else {
Echo" Sorry, the code you entered was invalid. Go back to try again. ";
}
}
?>
Securimage_show.php code:
Include 'securimage. php'; // download the core class library code in the package
$ Img = new securimage ();
$ Img-> show (); // alternate use: $ img-> show ('/path/to/background.jpg ');
?>