当我尝试在xampp localhost上加载php脚本时出现此错误,但此脚本在线托管时效果不错..
A PHP Error was encountered
Severity: Warning
Message: require_once(header.php): failed to open stream: No such file
or directory
Filename: core/Loader.php(829) : eval()'d code
Line Number: 1
Fatal error: require_once(): Failed opening required 'header.php'
(include_path='.;C:\xampp\php\PEAR') in
C:\xampp\htdocs\doitforfun\system\core\Loader.php(829) : eval()'d code
on line 1
这里是.htaccess
DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
xampp地址为C:\xampp\htdocs\movie