路径:include/dedesql.class.php
* 数据库类
* 说明:系统底层数据库核心类
* 调用这个类前,请先设定这些外部变量
* $GLOBALS['cfg_dbhost']; //意思是调用变量$cfg_dbhost,$GLOBALS全局的意思,可以在方法中调用该变量
外部变量设定参照:data/common.inc.php
$GLOBALS使用说明:<?phpfunction test() {$foo = "local variable";echo '$foo in global scope: ' . $GLOBALS["foo"] . "\n";echo '$foo in current scope: ' . $foo . "\n";}$foo = "Example content";test();?>以上例程的输出类似于:$foo in global scope: Example content$foo in current scope: local variable