PHP verification code tool-Securimage

Source: Internet
Author: User
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 ');
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.