...

View Full Version : Domain name variable?



Dylan Leblanc
11-16-2003, 10:39 PM
What is the best way to get the domain name from within PHP? Maybe one of the predefined variables? http://ca.php.net/manual/en/reserved.variables.php

I found that $_SERVER['HTTP_HOST'] gave the domain name, but is this reliable?

Nightfire
11-16-2003, 10:44 PM
I think that might be the most reliable thing you'd find



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum