我在同一主机上有两个带有 codeigniter 的脚本,其中一个运行良好。但另一个是显示服务器错误。当我## Heading ## 关注问题时,我注意到当我注释该行时没有出现服务器错误(在文件 CodeIgniter.php 中):
call_user_func_array(array(&$CI, $method), array_slice($URI->rsegments, 2));
更新:
我的htaccess
文件是:
RewriteEngine on
RewriteCond $1 !^(index\.php?|images|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php?/$1