You don't have permission to browse the server?

半腔热情 提交于 2021-01-27 04:25:11

问题


I am using kcfinder with ckeditor. While changing disabled to false in config file of kcfinder there is no problem but on overriding it with

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

i am unable to browse & upload files there.Message pop up's showing you don't have permission to browse the server. (framework used CI 3.x.)


回答1:


Try this. Make following changes to main index.php file

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

And put this code in browse.php of kcfinder

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


来源:https://stackoverflow.com/questions/40652833/you-dont-have-permission-to-browse-the-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!