Warning: is_dir() has been disabled for security reasons in  显示不存在

解决方案 »

  1.   

    safe_mode = Off  //你的估计是  On
      

  2.   

    不对呀,让高兴了一下。是off没错啊 
      

  3.   

    safe_mode = Off; By default, Safe Mode does a UID compare check when
    ; opening files. If you want to relax this to a GID compare,
    ; then turn on safe_mode_gid.
    safe_mode_gid = On; When safe_mode is on, UID/GID checks are bypassed when
    ; including files from this directory and its subdirectories.
    ; (directory must also be in include_path or full path must
    ; be used when including)
    safe_mode_include_dir =; When safe_mode is on, only executables located in the safe_mode_exec_dir
    ; will be allowed to be executed via the exec family of functions.
    safe_mode_exec_dir =
    这些我这样设置可以吗
      

  4.   

    那检查下disable_functions ,有没有限制 is_dir函数???
      

  5.   

    safe_mode_gid = On 是不是这个原因啊 
      

  6.   

    disable_functions =   这附近的,复制上来看看?
      

  7.   

    disable_functions =system,exec,passthru,shell_exec,popen,is_dir 
      

  8.   

    把,最好的is_dir删掉重启,就可以了
      

  9.   

    这里面的都是禁掉的函数disable_functions =system,exec,passthru,shell_exec,popen,is_dir改成
    disable_functions =system,exec,passthru,shell_exec,popenis_dir就可以用了。。记得重启下
      

  10.   

    警告:is_dir()已被禁用,由于安全原因 除了在禁用函数列表中除去 is_dir 外(不知道为什么放在里面)
    你还可以变通一下function my_is_dir($name) {
      return file_exists($name) && ! is_file($name);
    }