kcfinder
kcfinder copied to clipboard
kcfinder show direct php code
when I open kcfinder/browse.php It displays the direct php content instead of image upload screen
* @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ require "core/bootstrap.php"; $browser = "kcfinder\\browser"; // To execute core/bootstrap.php on older $browser = new $browser(); // PHP versions (even PHP 4) $browser->action(); ?>
Why this is happen?
Is it because of apache config or with htaccess?
Probably something wrong with your Apache and/or PHP config. Either PHP isn't enabled correctly in your Apache config (global config or htaccess problem) or there is something wrong with your PHP installation.
Are any other PHP files excecuted on the server when you try to open them?
This is why your .htacces get copied in the kcfinder folder, because your path to the folder in the conifg file is wrong. Just try this:
'uploadURL' => "/kcfinder/upload", 'uploadDir' => "upload",