host name

From: Date: Fri, 15 Aug 2003 03:32:58 +0000
Subject: host name
Groups: php.general 
Request: Send a blank email to php-general+get-159628@lists.php.net to get a copy of this message
Hi all, I want to get the current domain name in to a PHP variable. This is the case.. I have a web site and four diferent domian names pointing to that site. I want to redirect users from the four domains to their specific home pages. eg: if a visitor from http://domain1.com the header should be passed to domain1.php, if the visitor from http://domain2.com the header hould be pass to domain2.php. thanks Viraj

« previous php.general (#159628) next »