<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, [EMAIL PROTECTED] 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]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to