查看php.ini中open_basedir的值,加上你要操作的目录;或者直接注释掉,即在open_basedir前加分号;

解决方案 »

  1.   


    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below.  This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ;open_basedir =
    ;open_basedir =一直处于未开启状态,不知道是不是应该加上目录权限?
      

  2.   

    确定这个php.ini是发挥作用的php.ini吗?用phpinfo()看看所装载的php.ini路径。
    另外,再看看httpd.conf里有没有“php_value open_basedir“之类的语句,或者看看目录下有没有.htaccess文件
      

  3.   

    以下问题我详细的对比了一下,还是无法找到原因。一,从Phpinfo 中找到加载的Php.ini,找到的Open_base没有打开;
    二,WinServer2003 iis + Php 5
    三,无.htaccess文件,无配置现在是组合出文件实际路径也不行,明明文件存在,郁闷中!Google了一把,有人说是目录根的问题。测试时已经开放了读写权限!求助中!