PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\index.php on line 7
- Code: Select all
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
This is line 1-7
I have made sure the port is on which is 80 is open could someone please help me
Update
I have restarted my server in attempt to see if that would fix the problem it has not i have gotten a new error in the status window
Problem detected!
6:19:21 AM [Apache] Port 80 in use by "Unable to open process" with PID 4!
6:19:21 AM [Apache] Apache WILL NOT start without the configured ports free!
6:19:21 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
6:19:21 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port