PHP $_server name and uri
<p>Hi I'm trying to get a piece of html to only show on the main page which is <a href="http://www.domain.com/" rel="nofollow">http://www.domain.com/</a> ... I wrote the code below but it doesn't work the HTML is showing regardless of the page, am I missing something </p>

<pre><code>&lt;?php
$hweb .= 'http://' .$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
if ($hweb == 'http://www.domain.com/'):
?&gt;          
                    &lt;div style="margin:0 auto;"&gt;
                        &lt;div style="float:left"&gt;



&lt;?php endif; ?&gt;
</code></pre>
