没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > cool-php-captcha |
|
cool-php-captcha
|
| 1 | 0 | 29 |
| 贡献者 | 讨论 | 代码提交 |
El objetivo de este proyecto es la generación de captchas de seguridad básica generando imágenes relativamente amigables para el usuario.
ExampleThis project provides the SimpleCaptcha class.
Basic example:
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();... will output:
You can validate the php captcha with:
if (strtolower(trim($_REQUEST['captcha'])) != $_SESSION['captcha']) {
return "Invalid captcha";
}
Live examples(currently disabled for some time)
here are 3 live examples: (you can reload the page to refresh the images)
You can see more live examples at:
http://joserodriguez.cl/cool-php-captcha/example-form.php
More examplesBackground and foreground colors, dictionary words, non-dictionary random words, blur, shadows, JPEG and PNG support:
The images are similar to google captchas.
标签:
