I used the kcfinder in my Yii site
while clicking the image upload button it opens the following popup.
Here, while clicking 'Browse server' button, the popup opened, but it shows the php code. The url passed is::
http://sitename.com/kcfinder/browse.php?type=files&CKEditor=BbiiMessage_content&CKEditorFuncNum=1&langCode=en
It displays the direct php content instead of image upload screen
<?php
/** This file is part of KCFinder project
*
* @desc Browser calling script
* @package KCFinder
* @version 3.10
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @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();
?>
I don't know why. Its working fine in my local wamp server. please help me.
i have this problem too. delete .htaccess file in KCFinder Folder
如果未在服务器上安装PHP或未在虚拟主机中配置PHP,可能是发生了这种情况。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.