PDA

View Full Version : How can I get the domain name of the site that my script is running in?


ConfusedOfLife
08-07-2003, 01:39 PM
The whole question was in the title! Is there a way to do that? I want my program to show the name of the site that it's running in. I think I knew a function for this, but then I can't remember it.

Spookster
08-07-2003, 02:14 PM
There are many different pieces of information you can get using PHPs predefined server variables

Predefined Server Variables
http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server

Predefined Variables
http://us2.php.net/variables.predefined