My module needs to know the site's domain. Is the some way to find that out?
You can try the following:
$_SERVER['SERVER_NAME']
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
Comments
server variable
You can try the following:
$_SERVER['SERVER_NAME']
see
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