A PHP Error was encountered
Severity: Notice
Message: Undefined index: base_url
Filename: core/Config.php
Line Number: 67
将外包做的网站载到本机local端时遇到的错误讯息
此错误讯息是第一个
依照讯息来看是以下这段有错误
function __construct()
{
$this->config =& get_config();
log_message('debug', "Config Class Initialized");
// Set the base_url automatically if none was provided
if ($this->config['base_url'] == '')
{
if (isset($_SERVER['HTTP_HOST']))
{
$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';
$base_url .= '://'. $_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}
else
{
$base_url = 'http://localhost/1match/';
}
$this->set_item('base_url', $base_url);
}
}
麻烦高手帮忙一下!
还有另外两个错误讯息也是找不到办法
有高手愿意碰面帮忙我可以请喝咖啡喝茶~ 榆年^^