当我尝试在 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