htaccess和php_value include_path - 致命错误:require_once():打开所需文件失败

时间:2014-01-14 15:11:09

标签: php .htaccess xampp localhost

我正在尝试在本地计算机上运行网站。 我已经开始使用XAMPP修改htaccess文件。

这是旧设置

php_value include_path .:/home/sites/www.example.it/example.it/htdocs/conf/

这里是新的

php_value include_path .:/conf/

我收到的错误

Warning: require_once(conf.inc.php): failed to open stream: No such file or directory in C:\XAMPP\htdocs\wapp\index.php on line 2

Fatal error: require_once(): Failed opening required 'conf.inc.php' (include_path='.:/conf/') in C:\XAMPP\htdocs\wapp\index.php on line 2

index.php的第2行

require_once("conf.inc.php");

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

您的包含路径需要指向您的计算机上文件的位置:

php_value include_path .:C:\webfiles\example.it\htdocs\conf
相关问题