0

收到此错误:

致命错误:require_once() [function.require]:无法打开所需的“db/db.php”(include_path='/home/domain.ru/testerier/sites/application/../library:/home/domain.ru /testerier/sites/library:.:/usr/local/lib/php;/home/domain.ru/testerier/sites/application/models') 在 /home/domain.ru/testerier/sites/www/index.第 51 行的 php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)).";".realpath(APPLICATION_PATH . '/models'));

它在本地机器上运行良好。怎么了?

4

1 回答 1

0

你的本地机器是windwos机器和服务器Linux吗?那么你可能会遇到区分大小写的问题。Windows 不区分大小写,因此在 windowsFolderfolder是相同的。在 Linux 上它们不是。也许你library实际上是Library什么。

于 2010-01-29T20:59:46.713 回答