Home  >  Article  >  Backend Development  >  Use PHP to manually create a moving multi-frame GIF image verification code_PHP tutorial

Use PHP to manually create a moving multi-frame GIF image verification code_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:14:531007browse

Effect demonstration: http://pcik.7di.net/pcik_reg

Baidu's effect demonstration:
https://passport.baidu.com/cgi-bin/genimage?captchaservice63636236364e55367233302f31673844526b664451665a5a4d4977466974376b707a754466777934697449 455561625171346c725055444b51734a35376d2b4f744b6d303238315341382b354675344c3153745869487252376169752b437450515138574972436 752584f53717849726f48593258666c373574593753614f4d32703831724e 51722b694a31756b67467137644c30506979496639594e504931536732687a 5a505379305544554245724f76694a307247632b4f76426165663144732b595359394950413470476453787865564f6b506e674f7537637264526d7165 41377a384b487445624f365a4774657a58502b7347703763696d575261417 1615747784e5a6c5042336634766a5049766853365974444258577968645a4 f654f55

Since I’m not good at it, I can’t achieve the gorgeous effect of Baidu. Please forgive me

The verification code image is composed of multiple frames generated by PHP, so the verification code is a real and movable gif
How to use is very simple:
Description:
Gif verification code creation class
Author:
7di.net QQ group:223494678
Call:

Verification:
IF(!isSet($_SESSION['code']) Or StrToLower($_SESSION['code'])!=StrToLower($cod)){
throw New Exception('Error:'.__LINE__.',Verification code error!');Die();
}unSet($cod,$_SESSION['code']);

Download address: http://download.csdn.net/detail/sibang/5852531

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440240.htmlTechArticleEffect demonstration: http://pcik.7di.net/pcik_reg Baidu’s effect demonstration: https://passport .baidu.com/cgi-bin/genimage?captchaservice63636236364e55367233302f31673844526b664451665a5a4d497746...
Statement:
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