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);
}
}
麻煩高手幫忙一下!
還有另外兩個錯誤訊息也是找不到辦法
有高手願意碰面幫忙我可以請喝咖啡喝茶~ 榆年^^