Re: host name

From: Date: Fri, 15 Aug 2003 03:54:10 +0000
Subject: Re: host name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159632@lists.php.net to get a copy of this message
<pre> <?print_r($_SERVER);?> </pre> Have a look at the output, find the variable you need, then manipulate it if needed. Justin French On Friday, August 15, 2003, at 01:32 PM, viraj@ceynet.net wrote:
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- [This E-mail scanned for viruses]


« previous php.general (#159632) next »