我在网站上上传头像时遇到此错误。我以前从未得到过它,并且最近没有任何更改让我开始收到此错误......
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s):
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
修改您的托管帐户中的 open_basedir 设置并将其设置为 none。找到 Plesk/cPanel 的“PHP 设置”区域下给出的 open_basedir 设置。从那里给出的下拉列表中将其设置为“无”。 我已在 Plesk 面板图片中展示了它们。