至尊技术网 - Warning https://www.zzwws.cn/tag/Warning/ php中遇到Warning: include(....) 如何解决 https://www.zzwws.cn/archives/4858/ 2020-10-31T22:18:52+08:00 Warning: include(): open_basedir restriction in effect. File(/www/wwwroot/xxx.com/api/index.php) is not within the allowed path(s): (/www/wwwroot/xxx.com/:/tmp/) in /www/wwwroot/xxx.com/index.php on line 17 Warning: include(/www/wwwroot/xxx.com/api/index.php): failed to open stream: Operation not permitted in /www/wwwroot/xxx.com/index.php on line 17 Warning: include(): Failed opening '/www/wwwroot/xxx.com/api/index.php' for inclusion (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/xxx.com/index.php on line 17 解决方法把宝塔里的防跨站攻击关了就可以了!