2014-05-21 总结
1、dirname:获取前缀
$oBasePath = dirname($oBasePath)."/fckeditor/";
2、addslashes:转义字符,把在文本里输入的单引号,一样的传入到数据库中
3、fckeditor的使用
<?php
include("fckeditor/fckeditor.php");
$oBasePath = $_SERVER['PHP_SELF'];
$oBasePath = dirname($oBasePath)."/fckeditor/";
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->BasePath = $oBasePath ;
$oFCKeditor->Height = "500px";
// $oFCKeditor->ToolbarSet = "Basic";
$oFCKeditor->Create() ;
?>