RE: [PHP] Request domain name

2004-02-25 Thread James Nunnerley
$_SERVER["HTTP_HOST"] will get you the full domain name... Nunners -Original Message- From: Age Bosma [mailto:[EMAIL PROTECTED] Sent: 25 February 2004 14:13 To: [EMAIL PROTECTED] Subject: [PHP] Request domain name I would like to be able to request the domain name. How c

[PHP] Request domain name

2004-02-25 Thread Age Bosma
I would like to be able to request the domain name. How can this be achieved without hardcoding it? $_SERVER['REQUEST_URI'] doesn't provide me the domain name, it just provides me "/index.php?page=2000" instead of e.g. "www.blaat.com/index.php?page=2000" I can't seem to find anything on the php s