Re: [PHP] host name

2003-08-15 Thread viraj
echo $HTTP_HOST; did the job perfectly thanks Justin Viraj Quoting Justin French <[EMAIL PROTECTED]>: > > > > > 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] w

Re: [PHP] host name

2003-08-14 Thread Justin French
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 dom

Re: [PHP] host name

2003-08-14 Thread Mike Migurski
>I want to get the current domain name in to a PHP variable. print_r() the contents of $_SERVER to see all the information given to you by the webserver -- the host name will be in there. - michal migurski- contact info and pgp k

[PHP] host name

2003-08-14 Thread viraj
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 b