drnf09037160
2010-04-14 09:54
浏览 38
已采纳

CK编辑器和缺少的图像URL

I have integrated CKeditor with my admin panel (php) I have writtien a function for calling editor:

function editor(){
$txt = '<script type="text/javascript">
        CKEDITOR.replace( "kabst",{
            filebrowserUploadUrl : "'.UPLOAD_SCRIPT.'" });                          
            </script>';
    return $txt;
}

and define:

 define("UPLOAD_SCRIPT", $_SERVER['DOCUMENT_ROOT']."/cms/dashboard/upload.php");

I have error: NOT FOUND in ck upload. But upload.php is working. What is wrong in my code? Thanks in advance

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dtt5830659 2010-04-14 09:58
    已采纳

    Maybe use $_SERVER['SERVER_ROOT'] instead of DOCUMENT_ROOT ?

    打赏 评论

相关推荐 更多相似问题