Dylan Leblanc
11-16-2003, 09: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?
I found that $_SERVER['HTTP_HOST'] gave the domain name, but is this reliable?