Home  >  Article  >  Backend Development  >  Notice: Undefined variable: GOLBALS

Notice: Undefined variable: GOLBALS

WBOY
WBOYOriginal
2016-06-23 13:50:311053browse

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

可是GOLBALS 不是php 自带的么?为什么说未定义呢?


回复讨论(解决方案)

$GLOBALS 才是

$GOLBALS

改成

$GLOBALs

感谢您的回复,我按照您的修改了,可是还是报错
$GLOBALs
Notice: Undefined variable: GLOBALs 
另外 自定义全局变量(register_globals):也是打开的

手误

$GOLBALS

改成

$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