kcfinder icon indicating copy to clipboard operation
kcfinder copied to clipboard

kcfinder show direct php code

Open J1nFr34ks opened this issue 10 years ago • 2 comments

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?

J1nFr34ks avatar Apr 28 '15 07:04 J1nFr34ks

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?

Haprog avatar Jun 11 '15 06:06 Haprog

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",

CodeCaprese avatar Jun 18 '15 11:06 CodeCaprese