我的fckeditor在本地的apache服务器上能上传浏览图片
但是放倒虚拟主机上面他就提示error create forder,
不用虚拟路径还不行
config.php路径配置是这样的
$Config['UserFilesPath'] = '' ;
$Config['UserFilesAbsolutePath'] = '/hostel/uploadFiles/' ;

解决方案 »

  1.   

    将下边的代码写进config.php$sBasePath = $_SERVER['PHP_SELF'] ;
    $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "FCK所在的父目录" ) ) ;$Config['UserFilesPath'] = $sBasePath.'上传文件的目录/' ;//修改这个值就可以了。
      

  2.   


    应该是路径配置问题
    $Config['UserFilesAbsolutePath'] = '/hostel/uploadFiles/' ;这里面的路径必须是服务器上已有,而且有书写、执行权限的