Home > Backend Development > PHP Tutorial > 为什么WAMP里PHP开户了display errors后不能创建图片,该怎么处理

为什么WAMP里PHP开户了display errors后不能创建图片,该怎么处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:49:12
Original
759 people have browsed it

为什么WAMP里PHP开户了display errors后不能创建图片
请问?
为什么WAMP里PHP开户了display errors后不能创建图片,以至于不能创建验证码。

关掉display errors后,又能创建图片了。

------解决方案--------------------
每次用全局变量,都用isset检测一下。
比如$sess=isset($_SESSION['mysession'])?$_SESSION['mysession']:"";
对于图片,还要检测是否有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
Latest Issues
Verification code display
From 1970-01-01 08:00:00
0
0
0
Chinese display abnormality
From 1970-01-01 08:00:00
0
0
0
How to display plugin directly in datepicker?
From 1970-01-01 08:00:00
0
0
0
Where can I find the product display renderings?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template