至尊技术网 - 防跨站攻击
type: channel
link: https://www.zzwws.cn/tag/%E9%98%B2%E8%B7%A8%E7%AB%99%E6%94%BB%E5%87%BB/
items: php中遇到Warning: include(....) 如何解决

php中遇到Warning: include(....) 如何解决
type: item
date: 2020-10-31T22:18:52+08:00
description: 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 解决方法把宝塔里的防跨站攻击关了就可以了！