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

Thread: 

Simple Captchas with PHP?

Ads
Guest referral

 

#1
Unregistered
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

#2
Posting Freak
Here is a pretty basic PHP captcha script:

Captcha class:
PHP Code:
session_start();
$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
$captcha->CreateImage(); 

Validate captcha:
PHP Code:
if (empty($_SESSION['captcha']) || strtolower(trim($_REQUEST['captcha'])) != $_SESSION['captcha']) {
    return 
"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

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





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