My module needs to know the site's domain. Is the some way to find that out?

Comments

jclaussen’s picture

You can try the following:

$_SERVER['SERVER_NAME']

WorldFallz’s picture

see http://drupal.org/node/336154 for some additional info that might be useful.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz