2
我想給gzip ckeditor.js,我從爵士到PHP擴展改變,並添加此行ckeditor.js.php文件問題GZIP CKEditor的
<?php
ob_start ("ob_gzhandler");
header("Content-type: text/javascript; charset: UTF-8");
header("Cache-Control: must-revalidate");
$offset = 60 * 60 ;
$ExpStr = "Expires: " .
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?>
其他.js文件此代碼的工作,但這對於ckeditor.js.php頁面錯誤出現:
Error: CKEditor not found.This sample assumes that CKEditor (not included with CKFinder) is installed inthe "/ckeditor/" path. If you have it installed in a different place, just editthis file, changing the wrong paths in the <head> (line 5) and the "BasePath"value (line 32).
我發現ckeditor_php5.php和改變 * $ CKEditor->基本路徑= '/ CKEditor的/';到$ CKEditor-> basePath ='/ckeditor/ckeditor.js.php';但它不起作用。
我在htaccess文件中的AddHandler有問題。 http://stackoverflow.com/questions/4747830/problem-with-addhandler-in-htaccess – imez 2011-01-22 09:00:12