Here\'s the code:
if (isset($_SERVER[\'HTTP_HOST\']) === TRUE) { $host = $_SERVER[\'HTTP_HOST\']; }
How is it possible to get an \"Undefined
The HTTP_HOST must always be set if you are running on a browser... then there is no need to check... simply,
$host = $_SERVER['HTTP_HOST'];
is enough