$verify1 = $_SESSION['verify'];为什么值会为null 出现undefine index verify;undefine variable
$verify1 = $_SESSION['verify'];为什么值会为null 出现undefine index verify;undefine variable
$verify1 = $_SESSION['verify'];为什么值会为null 出现undefine index verify;undefine variable
2015-12-03
检查你的string.func.php
function verifyImage($type=1,$length=4,$pixel=50,$sess_name="verify")
{
//ͨ创建画布,定义黑色和白色
$width = 80;
$height =30;
$image = imagecreatetruecolor($width, $height);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image, 0, 0, 0);
//给画布添加白色背景
imagefilledrectangle($image, 1, 1, $width-2, $height-2, $white);
$chars=buildRandomString($type,$length);
$_SESSION[$sess_name]=$chars;
$fontfiles=array("MSYH.TTF","MSYHBD.TTF","SIMLI.TTF","SIMSUN.TTC","SIMYOU.TTF");
....
...
有没有加粗这两句话
举报