We have open_basedir errors in require, include and require_once, include_once. Baidu has some solutions below. Friends in need can refer to them.
As long as you use require or include to include a file (whether it is ./xx.php or xx.php), the following error will be reported
Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/:/tmp/:/var/cache/) in /var/ www/testdir.php on line 2
I heard that open_basedir has been changed in php 5.2.17. After checking, I found that the original php.ini in php5.2.10 uses a right slash
代码如下 | 复制代码 |
open_basedir = "e:/web/;C:/WINDOWS/TEMP/;" |
After upgrading to 5.2.17, tmd keeps reporting errors. Just change it to a left slash. What is this? No wonder many programs deal with the slash problem manually, probably just to deal with this problem
The code is as follows
|
Copy code
|
||||
open_basedir = "e:web;C:WINDOWSTEMP;"
|
http: //www.bkjia.com/PHPjc/632171.html