Difference between $_SERVER[‘DOCUMENT_ROOT’] and $_SERVER[‘HTTP_HOST’]
DOCUMENT_ROOT The root directory of this site defined by the ‘DocumentRoot’ directive in the General Section or a section e.g. HTTP_HOST The base URL of the host e.g. The document root is the local path to your website, on your server; The http host is the hostname of the server. They are rather different; perhaps … Read more