php验证码-注意事项

WBOY
Release: 2016-06-13 12:23:21
Original
788 people have browsed it

php验证码--注意事项

php制作验证码大概有三种方式:

字符

图片

汉字


这三种方式都比较常规,制作过程中需要注意以下几点:

素材要求:字体文件、图片、字符集

字体采用windows自带的:控制面板搜索"font" 打开字体 搜索 "微软雅黑" 把"wsyh.ttf"复制到php代码所在目录

编码格式:UTF8 无BOM

设置方法很简单,选择另存为utf8无bom即可,不到万不得已别用windows的记事本打开程序文件!

记住是UTF8无BOM

版权声明:本文为博主原创文章,未经博主允许不得转载。

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template