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

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

WBOY
Release: 2016-06-13 09:58:35
Original
811 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template