я хочу gzip ckeditor.js, и я изменил расширение с js на php и добавил эту строку в файл ckeditor.js.php
<?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-> basePath = '/ ckeditor /';to $ CKEditor-> basePath = '/ckeditor/ckeditor.js.php';но это не работает.