Welcome Guest, Not a member yet? Register   Sign In
Undefined index: HTTP_HOST
#1

i get in error log :
Quote:PHP Notice: Undefined index: HTTP_HOST in /var/www/html/web/libraries/src/Application/WebApplication.php on line 988
and code in this line : 
Code:
$uri = $scheme . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

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

What can I do to fix this?
Reply
#2

I think you need to read this before you continue.

HTTP_HOST and SERVER_NAME Security Issues
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB