[英]htaccess and php_value include_path - Fatal error: require_once(): Failed opening required file
I'm trying to running a site on my local machine. 我正在尝试在本地计算机上运行站点。 I've started modifying the htaccess file, using XAMPP.
我已经开始使用XAMPP修改htaccess文件。
Here is the old setting 这是旧的环境
php_value include_path .:/home/sites/www.example.it/example.it/htdocs/conf/
and here the new one 这里是新的
php_value include_path .:/conf/
The error I receive 我收到的错误
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
Line 2 of index.php index.php的第2行
require_once("conf.inc.php");
How can I solve this problem? 我怎么解决这个问题?
您的包含路径需要指向文件在计算机上的位置:
php_value include_path .:C:\webfiles\example.it\htdocs\conf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.