Undefined index: HTTP_HOST - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Undefined index: HTTP_HOST (/showthread.php?tid=69899) |
Undefined index: HTTP_HOST - cintadewiamelia - 01-28-2018 i get in error log : Quote:PHP Notice: Undefined index: HTTP_HOST in /var/www/html/web/libraries/src/Application/WebApplication.php on line 988and 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 90and code in this line : Code: $theURI = 'http' . $https . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; What can I do to fix this? RE: Undefined index: HTTP_HOST - InsiteFX - 01-29-2018 I think you need to read this before you continue. HTTP_HOST and SERVER_NAME Security Issues |