What is the difference between HTTP_HOST and SERVER_NAME in PHP?
HTTP_HOST
SERVER_NAME
where:
$_SERVER[\'HTTP_HOST\'
$_SERVER['SERVER_NAME'] is based on your web servers configuration. $_SERVER['HTTP_HOST'] is based on the request from the client.