乱码就在 php文件页面添加header("content-type:text/html;charset=utf-8");编码自己看着办
2016-08-05
<?php
ob_clean();
$image = imagecreatetruecolor(100, 30);
$bgcolor = imagecolorallocate($image, 255, 255, 255);
imagefill($image, 0 , 0, $bgcolor );
header('content-type:image/png');
imagepng($image);
imagedestroy($image);
ob_clean();
$image = imagecreatetruecolor(100, 30);
$bgcolor = imagecolorallocate($image, 255, 255, 255);
imagefill($image, 0 , 0, $bgcolor );
header('content-type:image/png');
imagepng($image);
imagedestroy($image);
2016-06-25
imagestring() 的第二个参数的取值范围是 [1, 5]
http://php.net/manual/zh/function.imagestring.php
http://php.net/manual/zh/function.imagestring.php
2016-06-20
$captch_code=$fontcontent;验证码一直其实输入错误的,看好了$captch_code.=$fontcontent;这段代码,前面那一段少了小数点,所以错误,加上小数点就好了
2016-06-04