【问题标题】:You don't have permission to browse the server?你没有权限浏览服务器?
【发布时间】:2016-11-23 18:23:04
【问题描述】:
我正在使用带有 ckeditor 的 kcfinder。在 kcfinder 的配置文件中更改 disabled to false 时没有问题,但是用
覆盖它
$_SESSION['KCFINDER'] = array(
'disabled' => false
);
我无法在那里浏览和上传文件。弹出消息显示您无权浏览服务器。
(框架使用 CI 3.x.)
【问题讨论】:
标签:
php
codeigniter
ckeditor
kcfinder
【解决方案1】:
试试这个。对主 index.php 文件进行以下更改
//$system_path = 'system';
$system_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'system';
//$application_folder = 'application';
$application_folder = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'application';
并将这段代码放在kcfinder的browse.php中
ob_start();
require_once('../index.php'); //path to main index file edited above
ob_end_clean();
$CI =& get_instance();
$CI->load->library('session');