Home > php教程 > php手册 > body text

PHP+Ajax调用简单漂亮的验证码

WBOY
Release: 2016-06-07 11:36:07
Original
1228 people have browsed it

本文演示了调用验证码并检测验证码输入是否正确,该验证码类库支持验证码图片、宽度、高度、个数、背景图片等。
PHP+Ajax调用简单漂亮的验证码
验证码调用方法Vendor('Vcode.Vcode', '', '.class.php'); <br> $config = array("width" => 100, "height" => 36, "count" => 4, "str" => 2); //配置 <br> $vcode = new \Vcode($config); <br> $vcode->getCode(); //获取验证码 <br> $vcode->getImg(); //输出图片 <br> exit;验证码演示界面:http://www.sucaihuo.com/php/533.html

附件 PHP原创验证码.zip ( 1.4 MB 下载:131 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template