加上: AddType application/x-httpd-php .php3可以吗?我得试试!! 不过我已搞定加上如下:<Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files> 但我又有了新问题 运行时报错 Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/phpMyAdmin/config.inc.php3 on line 17Warning: Variable passed to reset() is not an array or object in /var/www/html/phpMyAdmin/lib.inc.php3 on line 36Warning: Variable passed to each() is not an array or object in /var/www/html/phpMyAdmin/lib.inc.php3 on line 37----config.inc.php3程序 $cfgServers[1]['host'] = 'localhost'; $cfgServers[1]['port'] = ''; $cfgServers[1]['adv_auth'] = true; $cfgServers[1]['stduser'] = 'root'; $cfgServers[1]['stdpass'] = '123456''; ---$cfgServers[1]['user'] = 'root'; 错误行 17 $cfgServers[1]['password'] = ''; $cfgServers[1]['only_db'] = ''; $cfgServers[1]['verbose'] = ''; ----lib.inc.php3程序 ----reset($cfgServers);错误行36 ----while (list($key, $val) = each($cfgServers))错误行37 { // Don't use servers with no hostname if (empty($val['host'])) unset($cfgServers[$key]); } 我怀疑是变量$cfgServers错误,但我不知道怎样改了,且我在php.ini文件中已改 register_globals = On谢谢帮助学习!!!!
AddType application/x-httpd-php .php3AddType application/x-httpd-php .XXX //都行哦
AddType application/x-httpd-php .php3可以吗?我得试试!!
不过我已搞定加上如下:<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
但我又有了新问题
运行时报错
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/phpMyAdmin/config.inc.php3 on line 17Warning: Variable passed to reset() is not an array or object in /var/www/html/phpMyAdmin/lib.inc.php3 on line 36Warning: Variable passed to each() is not an array or object in /var/www/html/phpMyAdmin/lib.inc.php3 on line 37----config.inc.php3程序
$cfgServers[1]['host'] = 'localhost';
$cfgServers[1]['port'] = '';
$cfgServers[1]['adv_auth'] = true;
$cfgServers[1]['stduser'] = 'root';
$cfgServers[1]['stdpass'] = '123456'';
---$cfgServers[1]['user'] = 'root'; 错误行 17
$cfgServers[1]['password'] = '';
$cfgServers[1]['only_db'] = '';
$cfgServers[1]['verbose'] = ''; ----lib.inc.php3程序
----reset($cfgServers);错误行36
----while (list($key, $val) = each($cfgServers))错误行37
{
// Don't use servers with no hostname
if (empty($val['host']))
unset($cfgServers[$key]);
}
我怀疑是变量$cfgServers错误,但我不知道怎样改了,且我在php.ini文件中已改
register_globals = On谢谢帮助学习!!!!
ScriptAlias /php/ "/php/" //指明路径
Addtype application/x-httpd-php .php //后缀名,改成.php3也行
Action application/x-httpd-php "/php/" //执行程序路径