2016-11-17 21 views
6

我正在用ckeditor和ckeditor一起使用。雖然kcfinder的配置文件改變disabled to false是沒有問題的,但與您沒有瀏覽服務器的權限?

$_SESSION['KCFINDER'] = array(
    'disabled' => false 
); 

覆蓋它,我無法瀏覽&上傳文件there.Message彈出您顯示沒有權限瀏覽服務器。 (框架使用CI 3.x.)

+0

的browse.php看看[這個答案](http://stackoverflow.com/questions/13760367/kcfinder-you-do-no-have-permission-to-list-the-files?rq = 1) –

+0

可能的重複: http://stackoverflow.com/questions/13760367/kcfinder-you-do -not-have-permission-to-list-the-files?rq = 1 – Ronald

回答

7

試試這個。做以下修改主index.php文件

//$system_path = 'system'; 
$system_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'system'; 
//$application_folder = 'application'; 
$application_folder = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'application'; 

,並把這個代碼在kcfinder

ob_start(); 
require_once('../index.php'); //path to main index file edited above 
ob_end_clean(); 
$CI =& get_instance(); 
$CI->load->library('session'); 
+1

這對我有用。感謝使它browse.php –

相關問題