Try it. Make the following changes to the 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 from kcfinder
ob_start(); require_once('../index.php'); //path to main index file edited above ob_end_clean(); $CI =& get_instance(); $CI->load->library('session');
source share