Php 这是什么原因造成的';未找到索引';代码点火器3中出现错误

Php 这是什么原因造成的';未找到索引';代码点火器3中出现错误,php,codeigniter,Php,Codeigniter,我有一个应用程序似乎运行良好,但我的日志每天都会有几行这样的内容 ERROR - 2015-07-30 12:19:07 --> Severity: Notice --> Undefined index: HTTP_HOST /application/config/database.php 67 ERROR - 2015-07-30 12:19:07 --> Severity: Notice --> Undefined index: HTTP_HOST /applicat

我有一个应用程序似乎运行良好,但我的日志每天都会有几行这样的内容

ERROR - 2015-07-30 12:19:07 --> Severity: Notice --> Undefined index: HTTP_HOST /application/config/database.php 67
ERROR - 2015-07-30 12:19:07 --> Severity: Notice --> Undefined index: HTTP_HOST /application/config/database.php 68
ERROR - 2015-07-30 12:19:07 --> Severity: Notice --> Undefined index: HTTP_HOST /application/config/database.php 69
ERROR - 2015-07-30 12:19:07 --> Severity: Notice --> Undefined index: HTTP_HOST /application/controllers/Inc.php 15
正如我所说,该应用程序似乎运行正常,但我依赖于使用$_SERVER['HTTP_HOST']来确保正确执行。这是CodeIgniter 3的已知问题吗?尤其是数据库配置。根据我所在的实例,我使用不同的数据库


谢谢你的建议

您可以尝试使用
$\u服务器['SERVER\u NAME']
问题是服务器没有将HTTP\U主机发送到$\u服务器全局变量。这种情况很多次都会因服务器而异