changing output based on http_host?
-
So I am trying to do something like this…
?php switch($_SERVER['HTTP_HOST']) { case 'wahsingtonbasedsite.com': case 'www.washingtonbasedsite.com': echo 'WASHINGTON PHONE NUMBER'; break; case 'idahobasedsite.com': case 'www.idahobasedsite.com': echo 'IDAHO PHONE NUMBER'; break; default: echo 'DEFAULT PHONE NUMBER'; break; ?>
But all I keep getting is nothing shown, if anyone has any ideas that would superb. Thank you for your time!
Chad
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘changing output based on http_host?’ is closed to new replies.