Home > Backend Development > PHP Tutorial > Notice: Undefined variable: GOLBALS解决思路

Notice: Undefined variable: GOLBALS解决思路

WBOY
Release: 2016-06-13 12:05:41
Original
947 people have browsed it

Notice: Undefined variable: GOLBALS
求助,这个怎么解决啊
提示出问题的代码是 $inc_path = dirname($cache_path) . '/' . $inc_file . '_' . md5($GOLBALS['roc_config']['secure_key']) . '.php';

可是GOLBALS 不是php 自带的么?为什么说未定义呢?
------解决方案--------------------
$GLOBALS 才是
------解决方案--------------------
$GLOBALs

=>

$GLOBALS

php 变量是区分大小写的。

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