Home > Article > Backend Development > How to use fckeditor editor PHP_PHP tutorial
FCK configuration in php
1: Change the file upload language to PHP
Open fckconfig.js
Found:
var _FileBrowserLanguage = 'asp'
var _QuickUploadLanguage = 'asp'
Change to:
var _FileBrowserLanguage = 'php'
var _QuickUploadLanguage = 'php'
Two: Enable PHP file upload
1: Enable FileBrowser:
Open fckeditor/editor/filemanager/connectors/php/config.php
Enable file upload:
Found:
$Config['Enabled'] = false
Change to:
$Config['Enabled'] = true
Set upload storage directory:
Found:
$Config['UserFilesPath'] = '/userfiles/'
Changed to:
$Config['UserFilesPath'] = 'Your own project path'
2: Enable QuickUpload
Open fckeditor/editor/filemanager/upload/php/config.php
Enable file upload:
Found:
$Config['Enabled'] = false
Changed to:
$Config['Enabled'] = true
Set the upload storage directory:
Found:
$Config['UserFilesPath'] = '/userfiles/'
Changed to:
$Config['UserFilesPath'] = 'Your own project path'
Usage examples
$fck = $_POST [ " FCKeditor1 " ] ;
if ( $fck != "" )
{
echo htmlspecialchars ( $fck ) ;
}
?>
Excerpted from Web0730