• Resolved chadrt

    (@chadrt)


    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)
  • Thread Starter chadrt

    (@chadrt)

    WOW, rookie mistake, I feel stupid now!! It is missing the closing “}” ok time to go watch TV and come back my site building when my eyes aren’t acting blind. I sure wish I could delete this post to save myself the embarrassment LOL

Viewing 1 replies (of 1 total)
  • The topic ‘changing output based on http_host?’ is closed to new replies.