代码之家  ›  专栏  ›  技术社区  ›  Ben

open_basedir错误阻止虚拟人物上载

  •  0
  • Ben  · 技术社区  · 16 年前

    当我的网站上传虚拟人物时,我会收到这个错误。我已经将服务器上php.in i中的“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
    

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

    1 回复  |  直到 16 年前
        1
  •  0
  •   Pekka    16 年前

    问题不在于open-basedir,而是在你上传的图片中。仔细查看错误消息:

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

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

    推荐文章