警告open_basedir限制生效文件不在允许的路径内 [英] warning open_basedir restriction in effect File not within the allowed path

查看:1253
本文介绍了警告open_basedir限制生效文件不在允许的路径内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

i使用代码



$ LogFile ='C:\innetpub\saor\log。 txt';

$ DestImg ='testing';



file_put_contents($ LogFile,$ DestImg,FILE_APPEND);







chmod():open_basedir限制生效。文件(log.txt)不在允许的路径内



file_put_contents(log.txt):无法打开流:

Hi
i use code

$LogFile='C:\innetpub\saor\log.txt';
$DestImg='testing';

file_put_contents($LogFile,$DestImg,FILE_APPEND);



chmod(): open_basedir restriction in effect. File(log.txt) is not within the allowed path(s)

file_put_contents(log.txt): failed to open stream: Operation not permitted in

推荐答案

LogFile ='C:\ nenetpub \saor\log.txt';
LogFile='C:\innetpub\saor\log.txt';


DestImg ='测试';



file_put_contents(
DestImg='testing';

file_put_contents(


LogFile,


这篇关于警告open_basedir限制生效文件不在允许的路径内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆