Today's course, the teacher mainly introduces the method of making verification code, and review the front-end (HTML) and back-end (PHP, database) to interact with the relevant content.
First, summary
1. Verification Code Programming Step: The first step to create a new canvas "new image"; The second step is to select "Create Paint"; The third step is to save the fourth step, and the fifth step to destroy the canvas resource.
2. Statement: Header ("content-type:image/png"); statement meaning: Inform: This PHP file content type: Picture. After writing the statement, the following can not have output content (such as: Div, <br>, etc.), otherwise the content type is changed.
3.php File output type is picture , no need to write UTF8 code, there can be no content outside the PHP tag (including carriage return) .
Second, the programming process of verification code
650) this.width=650; "title=" Verification code. PNG "Src=" Http://s4.51cto.com/wyfs02/M02/8C/68/wKioL1hrvo_ Jv9x3aahwa8fcvyk546.png-wh_500x0-wm_3-wmp_4-s_3023514081.png "alt=" wkiol1hrvo_jv9x3aahwa8fcvyk546.png-wh_50 "/ >
650) this.width=650; "title=" Verification code map. png "src=" http://s4.51cto.com/wyfs02/M00/8C/6B/ Wkiom1hrvpdxjljmaaa0cysymyy460.png-wh_500x0-wm_3-wmp_4-s_2331016257.png "alt=" Wkiom1hrvpdxjljmaaa0cysymyy460.png-wh_50 "/>
third, using (PHP with MySQL) to write the administrator to increase the data process
650) this.width=650; "title=" increase or decrease the form. png "src=" http://s4.51cto.com/wyfs02/M01/8C/6C/ Wkiom1hrv2jidrykaad-bxxc-cc052.png-wh_500x0-wm_3-wmp_4-s_4245192295.png "alt=" Wkiom1hrv2jidrykaad-bxxc-cc052.png-wh_50 "/>
650) this.width=650; "title=" Zzzzzzzzzzz.png "src=" Http://s3.51cto.com/wyfs02/M01/8C/68/wKioL1hrwC6iL7bfAAInNi5IC _e691.png-wh_500x0-wm_3-wmp_4-s_3743638951.png "alt=" Wkiol1hrwc6il7bfaainni5ic_e691.png-wh_50 "/>
650) this.width=650; "title=" link. png "src=" http://s2.51cto.com/wyfs02/M02/8C/68/ Wkiol1hrv2eqerplaaccl3pyyhu124.png-wh_500x0-wm_3-wmp_4-s_1533684055.png "alt=" Wkiol1hrv2eqerplaaccl3pyyhu124.png-wh_50 "/>
This article is from the "12244280" blog, please be sure to keep this source http://12254280.blog.51cto.com/12244280/1888746
PHP Course Summary 20170103