我有许多使用PHP的HTML文件。我通过使用.htacess代码解决此问题...服务器传输后需要帮助修复PHP .htaccess错误
AddType application/x-httpd-php .php .html .htm
...它工作正常(在大多数情况下)。
我使用浏览器嗅探器来检测我的用户正在使用哪个浏览器,如果他们不使用IE,我显示一个导航栏。该代码是在这里...
include('http://domain/browser.php'); $browser = new Browser(); if($browser->getBrowser() == Browser::BROWSER_IE) { } else{ include('http://domain.com/bottom-nav.php'); }
所有这一切都工作得很好,但之前我只是做了一个服务器转移,现在只有这个PHP代码休息,给我这个错误。
Warning: include_once() [function.include-once]: URL file-access is disabled in the server configuration in /home/myname/public_html/index.html on line 359
'http:// domain /'=脚本运行的相同域? –