|
[U]复制代码[/U] 代码如下:
function _code($_code_length = 4, $_width = 75, $_height = 25){
for($i=0;$i
$_($_width, $_height);
$_white = imagecolorallocate($_img, 250, 250, 250);
imagefill($_img, 0, 0, $_white);
$_gray = imagecolorallocate($_img, 196, 196, 196);
imagerectangle($_img, 0, 0, $_width-1, $_height-1, $_gray);
for ($i=0; $i
for ($i=0; $i
for ($i=0; $i
header("Content-Type:image/png");
imagepng($_img);
imagedestroy($_img);
}
您可能感兴趣的文章:修改了一个很不错的php验证码(支持中文)PHP验证码类代码( 最新修改,完全定制化! )一个PHP验证码类代码分享(已封装成类)支持中文字母数字、自定义字体php验证码代码一个漂亮的php验证码类(分享)PHP验证码函数代码(简单实用)
|
|