沈国安 发表于 2020-7-7 09:45:44

【已解答】防跨站攻击问题

防跨站攻击
环境:IIS+php7
框架:thinkphp5

网站目录:d:\wwwroot\a.cn\
运行目录:d:\wwwroot\a.cn\public
.user.ini 内容

open_basedir="D:/wwwroot/a.cn/;C:/Windows/Temp/;C:/Temp/;D:/BtSoft/temp/session/"


报错信息
is_file(): open_basedir restriction in effect. File(D:\wwwroot\a.cn\.env) is not within the allowed path(s): (D:/wwwroot/a.cn/;C:/Windows/Temp/;C:/Temp/;D:/BtSoft/temp/session/)
求高手指教


沐沐 发表于 2020-7-7 10:47:37

open_basedir="D:\wwwroot\a.cn\;C:\Windows\Temp\;C:\Temp\;D:\BtSoft\temp\session\"


试试这样
页: [1]
查看完整版本: 【已解答】防跨站攻击问题