fckeditor 在php中开启图片上传的功能

 

 一、fckconfig.js文件中第132 /133行, 修改如下
var _FileBrowserLanguage     = 'php' ;     // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage     = 'php' ;     // asp | aspx | cfm | lasso | php

 

二、在FCKeditor/editor/filemanager/upload/php/config.php
里面第23行起
// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = true ;

// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/php/lr/WEB-INF/uploads/' ;
这个路径要相对于root的, 要不就绝对路径


三、 FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
里面第23行起
// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/php/lr/WEB-INF/uploads/' ;
同上
 

 

你可能感兴趣的:(PHP,fckeditor,Security,perl,asp,Path)