CodeIgniter Forums

Full Version: Undefined index: HTTP_HOST
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i get in error log :
Quote:[font=Arial,]PHP Notice: Undefined index: HTTP_HOST in /var/www/html/web/libraries/src/Application/WebApplication.php on line 988[/font]
and code in this line : 
Code:
$uri = $scheme . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

Quote:[font=Arial,]PHP Notice: Undefined index: HTTP_HOST in /var/www/html/web/libraries/src/Uri/Uri.php on line 90[/font]
and code in this line : 
Code:
$theURI = 'http' . $https . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

What can I do to fix this?
I think you need to read this before you continue.

HTTP_HOST and SERVER_NAME Security Issues