【问题标题】:open_basedir error preventing avatar uploadsopen_basedir 错误阻止头像上传
【发布时间】:2009-12-07 19:44:23
【问题描述】:

在我的网站上上传头像时出现此错误。我在服务器上的 php.ini 中将“open_basedir = /home/”更改为“open_basedir =”。这是一个专用服务器,我在调整后重新启动它。

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/source:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/source/public_html/lib/php/tru/directory.php on line 46



Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/source:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/source/public_html/lib/php/tru/directory.php on line 46

我还能做些什么来解决这个问题?

【问题讨论】:

标签: php open-basedir


【解决方案1】:

问题不在于 open_basedir,而在于您的图片上传。仔细看错误信息:

File(/) is not within the allowed path(s):

我敢打赌,文件名/路径应该是一个空变量。

【讨论】:

    猜你喜欢
    • 2013-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-17
    • 1970-01-01
    • 2015-12-01
    • 2020-08-05
    相关资源
    最近更新 更多