Jump to content


Photo

2 Websites for the price of 1


  • Please log in to reply
1 reply to this topic

#1 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 16 August 2006 - 07:19 PM

I don't know if this would work but I have 2 domian names. I know I can add the second to my site as an  alias. Would it be posible to test if the user went to
www.bill-smith@mywebsite.co.uk OR
www.fred-smith@mywebsite.co.uk

If so I could set this site up as 2 websites using the same spacw AND the same MySQL
database.

Desmond.


#2 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 16 August 2006 - 09:08 PM

Don't worry It's easy I just use the following

$domain = $_SERVER['HTTP_HOST'];




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users