kcfinder browse.php,KCFinder - browse.php正在下载,而不是显示页面

在尝试集成最新版KCFinder到CKEditor时遇到问题,点击浏览服务器按钮导致KCFinder的browse.php文件被下载而非预期的显示目录内容。已确认未修改.htaccess文件,并使用了默认的KCFinder config.php配置。可能的原因及解决方案寻求帮助。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我已经将最新版本的KCFinder集成到CKEditor中 - 每当我点击CKEditor工具栏上的“浏览服务器”按钮时,它都会打开KCFinder对话框并下载“浏览”。 php'文件而不是显示目录的内容。KCFinder - browse.php正在下载,而不是显示页面

这几乎就像由于某种原因PHP引擎暂时停止工作 - 我没有修改任何htaccess文件。

我目前正在使用kcfinder目录中的标准config.php - 有人会知道什么可能导致这种情况,以及如何解决它?

// kcfinder/config.php中

$_CONFIG = array(

'disabled' => true,

'denyZipDownload' => false,

'denyUpdateCheck' => false,

'denyExtensionRename' => false,

'theme' => "oxygen",

'uploadURL' => "",

'uploadDir' => "",

'dirPerms' => 0755,

'filePerms' => 0644,

'access' => array(

'files' => array(

'upload' => true,

'delete' => true,

'copy' => true,

'move' => true,

'rename' => true

),

'dirs' => array(

'create' => true,

'delete' => true,

'rename' => true

)

),

'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",

'types' => array(

// CKEditor & FCKEditor types

'files' => "",

'flash' => "swf",

'images' => "*img",

// TinyMCE types

'file' => "",

'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",

'image' => "*img",

),

'filenameChangeChars' => array(/*

' ' => "_",

':' => "."

*/),

'dirnameChangeChars' => array(/*

' ' => "_",

':' => "."

*/),

'mime_magic' => "",

'maxImageWidth' => 0,

'maxImageHeight' => 0,

'thumbWidth' => 100,

'thumbHeight' => 100,

'thumbsDir' => ".thumbs",

'jpegQuality' => 90,

'cookieDomain' => "",

'cookiePath' => "",

'cookiePrefix' => 'KCFINDER_',

// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION

'_check4htaccess' => true,

//'_tinyMCEPath' => "/tiny_mce",

'_sessionVar' => &$_SESSION['KCFINDER'],

//'_sessionLifetime' => 30,

//'_sessionDir' => "/full/directory/path",

//'_sessionDomain' => ".mysite.com",

//'_sessionPath' => "/my/path",

);

?>

2013-03-07

Zabs

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值