ckeditor:致命错误:require()[function.require]:无法打开所需文件'__DIR__/lang/en.php';)

ckeditor:致命错误:require()[function.require]:无法打开所需文件'__DIR__/lang/en.php';),php,mysql,codeigniter,Php,Mysql,Codeigniter,我从服务器收到以下错误: 致命错误:require()[function.require]:无法在/home/content/38/8264638/html/console/assets/ckeditor/plugins/imageuploader/imgbrowser.php第16行打开所需的“\uu DIR\uu lang/en.php”。:/usr/local php5/lib/php”) 在我的ckeditor中,我集成了imageuploader及其在本地服务器中的工作,但在托管服务器

我从服务器收到以下错误:

致命错误:require()[function.require]:无法在/home/content/38/8264638/html/console/assets/ckeditor/plugins/imageuploader/imgbrowser.php第16行打开所需的“\uu DIR\uu lang/en.php”。:/usr/local php5/lib/php”)

在我的ckeditor中,我集成了imageuploader及其在本地服务器中的工作,但在托管服务器中不工作。imagebrowser.php文件中的错误如下是imagebrowser.php中的代码。请帮助我

<?php
session_start();
$link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$root = "http://$_SERVER[HTTP_HOST]";

// checking lang value
if(isset($_COOKIE['sy_lang'])) {
    $load_lang_code = $_COOKIE['sy_lang'];
} else {
    $load_lang_code = "en";
}

// including lang files
switch ($load_lang_code) {
    case "en":
        require(__DIR__ . '/lang/en.php');
        break;
    case "pl":
        require(__DIR__ . '/lang/pl.php');
        break;
}

// Including the plugin config file, don't delete the following row!
require(__DIR__ . '/pluginconfig.php');
// Including the functions file, don't delete the following row!
require(__DIR__ . '/function.php');
// Including the check_permission file, don't delete the following row!
require(__DIR__ . '/check_permission.php');

$_SESSION["username"] = "disabled_pw"; 

?>

您的PHP版本不支持
\uuuuu DIR\uuuu
,因此它被视为文本字符串

您可以修复它,但应该更新PHP版本

dirname(__FILE__)

您的PHP版本不支持
\uuuuu DIR\uuuu
,因此它被视为文本字符串

您可以修复它,但应该更新PHP版本

dirname(__FILE__)

更新PHP版本并不是一项简单的任务:)它需要大量的effofthow require(DIR.'/lang/en.PHP');替换为dirname(文件)…@Niet the Dark Absol(如何在我的代码中实现)@AlexandrKapustin当然,但从长远来看,这是最好的解决方案。例如,如果我们能说服所有人升级到PHP7,那么我们就不会再有人抱怨
mysql\u fetch\u assoc
期望参数1是资源,布尔给定。更新PHP版本并不是一件简单的任务:)它需要大量的effofthow require(DIR./lang/en.PHP');替换为dirname(文件)…@Niet the Dark Absol(如何在我的代码中实现)@AlexandrKapustin当然,但从长远来看,这是最好的解决方案。例如,如果我们能说服所有人升级到PHP7,那么我们就不会再有人抱怨
mysql\u fetch\u assoc
期望参数1是资源,布尔给定。