Forum Moderators: coopster
www.domain1.com – welcome to domain1.com
www.domain2.com – welcome to domain2.com
www.domain2.net – welcome to domain2.net
I know I have to use the parse_url, but being a newbie I have no clue on how I am to use this effectively.
Any help out there?
There's a TON of great material in the PHP manual for this fuction:
[us3.php.net...]
always more than one way to skin a cat
$sitename = $_SERVER['HTTP_HOST'];
$sitename = str_replace("www.","",$sitename);
echo "welcome to $sitename";
Server variables: $_SERVER [ca.php.net]