Multiple domains and SERVER_NAME

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

If I have multiple domains (,, pointing at the same IP, will the call


return the domain name people type into the URL?  If not, what is a
PHP call I can make to determine the domain someone typed in?

I'm using PHP 4.4.4.  Thanks, - Dave

Re: Multiple domains and SERVER_NAME

$_SERVER['SERVER_NAME'] should work as well as $_SERVER['HTTP_HOST']

Site Timeline