cool-php-captcha 是一个很酷的 PHP 用来生成验证码的库。
示例代码:
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();