【发布时间】:2011-01-11 00:12:35
【问题描述】:
收到此错误:
致命错误: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.php 第 51 行
// 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'));
它在本地机器上运行良好。怎么了?
【问题讨论】:
标签: zend-framework include-path