Author: techfox9
Detecting domain names in php ..
Tuesday, July 14th, 2009 @ 1:13 am
From http://www.webmasterworld.com/forum88/11417.htm
<? if (strpos(getenv('SERVER_name'), 'domain1.com')!==false) { echo "<img src='1.jpg'>"; } elseif (strpos(getenv('SERVER_name'), 'domain2.com')!==false) { echo "<img src='2.jpg'>"; }; ?>