【发布时间】:2017-04-24 08:11:30
【问题描述】:
我从服务器收到以下错误:
致命错误:require() [function.require]:在 / 中打开所需的 '__DIR__/lang/en.php' (include_path='.:/usr/local/php5/lib/php') 失败home/content/38/8264638/html/console/assets/ckeditor/plugins/imageuploader/imgbrowser.php 在第 16 行
在我的 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 mysql codeigniter