为什么无法输出一张图片
程序员文章站
2022-05-01 18:28:25
...
session_start(); //随机码的个数 //$_rnd_code = 4; //创建随机码 for($i=0;$i
输出结果为回复讨论(解决方案)
$_nmsg='';
for($i=0;$i $_nmsg.=dechex(mt_rand(0,15));
}$_nmsg='';
for($i=0;$i $_nmsg.=dechex(mt_rand(0,15));
}session_start(); //随机码的个数 //$_rnd_code = 4; $_nmsg=' '; //创建随机码 for($i=0;$i
写完之后,还是显示
按错误信息修改
Notice: Undefined variable: _rnd_code in D:\AMP\web\ide_tmp.php on line 53
Warning: Division by zero in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _heght in D:\AMP\web\ide_tmp.php on line 53
Warning: mt_rand(): max(0) is smaller than min(1) in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _rnd_code in D:\AMP\web\ide_tmp.php on line 53
Warning: Division by zero in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _heght in D:\AMP\web\ide_tmp.php on line 53
Warning: mt_rand(): max(0) is smaller than min(1) in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _rnd_code in D:\AMP\web\ide_tmp.php on line 53
Warning: Division by zero in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _heght in D:\AMP\web\ide_tmp.php on line 53
Warning: mt_rand(): max(0) is smaller than min(1) in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _rnd_code in D:\AMP\web\ide_tmp.php on line 53
Warning: Division by zero in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _heght in D:\AMP\web\ide_tmp.php on line 53
Warning: mt_rand(): max(0) is smaller than min(1) in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _rnd_code in D:\AMP\web\ide_tmp.php on line 53
Warning: Division by zero in D:\AMP\web\ide_tmp.php on line 53
Notice: Undefined variable: _heght in D:\AMP\web\ide_tmp.php on line 53
Warning: mt_rand(): max(0) is smaller than min(1) in D:\AMP\web\ide_tmp.php on line 53
‰PNG
然后得:
仍然是不友好的“验证码”图片将header注释掉,打开错误就可以看到错误。
推荐阅读
-
为啥无法输出一张图片
-
模拟请求一张图片,请求首部包含range,但为什么返回的没有content-range字段?
-
模拟请求一张图片,请求首部包含range,但为什么返回的没有content-range字段?
-
为什么好多网页习惯用一张大图片(包含页面中所有小图标)来做图标呢?_html/css_WEB-ITnose
-
新手提问。php 使用imagejpeg(图片) 显示图片 写一个显示一张图片写两个 为什么还是显示一张?
-
获取MySQL中二进制存取的图片,只好输出第一张,不能循环输出?
-
在codeigniter框架的控制器中用header("Content-type: image/jpeg")输出图片怎么无法显示
-
PHP怎么输出一张图片
-
新手提问。php 使用imagejpeg(图片) 显示图片 写一个显示一张图片写两个 为什么还是显示一张?
-
为什么无法输出一张图片