PHP安装配置后,运行时,如果字符串或变量内存在有变量,则产生解析错误
如下面的代码:
if($tables[$key]) $tableExist .= "
数据表 $key 已经存在";
$cfg['navigationPreA'] = "
";
都会产生类似如下错误:
Notice: Undefined variable: rootDir in /include/config.php on line 39
Notice: Undefined variable: rootDir in /include/config.php on line 40
Notice: Undefined index: widthPage in /include/function.php on line 486
Notice: Undefined index: step in /admin/install.php on line 253
Notice: Undefined index: step in /admin/install.php on line 253
Notice: Undefined variable: Bg in /include/function.php on line 356
Notice: Undefined variable: tables in /admin/install.php on line 270
Notice: Undefined variable: tables in /admin/install.php on line 270
Notice: Undefined variable: tables in /admin/install.php on line 270
Notice: Undefined variable: tables in /admin/install.php on line 270
Notice: Undefined variable: tables in /admin/install.php on line 270
请问,谁知道这是怎么回事?
是php.ini 配置错误还是有什么问题?需要说明的是所运行的程序在其它服务器运行正常。
谢谢