Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.


Simple Captchas with PHP?

Guest referral


I would like to know how captchas are generated with PHP could someone post here a simple captcha generated PHP script?
invisibe_dude Offline referral

Posts: 820
Joined: May 2013
Reputation: 24

Posting Freak
Here is a pretty basic PHP captcha script:

Captcha class:
PHP Code:
$captcha = new SimpleCaptcha();
// Change configuration...
//$captcha->wordsFile = null;           // Disable dictionary words
//$captcha->wordsFile = 'words/es.txt'; // Enable spanish words
//$captcha->session_var = 'secretword'; // Change session variable

Validate captcha:
PHP Code:
if (empty($_SESSION['captcha']) || strtolower(trim($_REQUEST['captcha'])) != $_SESSION['captcha']) {
"Invalid captcha";

You can download full captcha generating script here: https://code.google.com/p/cool-php-captcha/
Rapidsoft technologies Offline referral

Posts: 208
Joined: Sep 2015
Reputation: 1

Nice! We can build apps for you and according to your Business.

User(s) browsing this thread: 1 Guest(s)