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

Notice: Undefined variable: GOLBALS解决思路

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:05:41967browse

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

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

=>

$GLOBALS

php 变量是区分大小写的。

Statement:
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