2014-05-21 总结

﹥>﹥吖頭↗ 提交于 2019-11-26 17:18:14

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() ;    

  ?>

转载于:https://www.cnblogs.com/zouyajun/p/3746758.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!