Run PHP code on a specific domain only
Posted
by curtismchale
on Stack Overflow
See other posts from Stack Overflow
or by curtismchale
Published on 2010-04-26T23:04:34Z
Indexed on
2010/04/26
23:13 UTC
Read the original article
Hit count: 105
php
I need to echo out some specific php code only on the sub-domain of a site. This is where I am so far.
<?php
if($_SERVER['SERVER_NAME'] != "http://support.demo.com")
echo "<?php bb_head(); ?>";
?>
Of course if this worked I'd not be asking a question. Help is appreciated.
© Stack Overflow or respective owner