open_basedir 限制生效。文件(/)不在允许的路径内:
P粉248602298
P粉248602298 2023-08-23 18:41:21
[PHP讨论组]

我在网站上上传头像时遇到此错误。我以前从未得到过它,并且最近没有任何更改让我开始收到此错误......

Warning: is_writable() [function.is-writable]: 
open_basedir restriction in effect. 
File(/) is not within the allowed path(s):


P粉248602298
P粉248602298

全部回复(1)
P粉006540600

修改您的托管帐户中的 open_basedir 设置并将其设置为 none。找到 Plesk/cPanel 的“PHP 设置”区域下给出的 open_basedir 设置。从那里给出的下拉列表中将其设置为“无”。 我已在 Plesk 面板图片中展示了它们。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号