PHP $_SERVER['SERVER_NAME'] correct use
<p>noob question here</p>

<p>I'm building a interactive web site using php, and i decided to do one interative menu. Well, my menu consists in one file called menu.php. </p>

<pre><code>&lt;?php
    echo "&lt;ul&gt;
        &lt;li&gt;&lt;a href='".$_SERVER['SERVER_NAME']."/menu/register.php'&gt;Cadastro&lt;/a&gt;&lt;br&gt;&lt;/li&gt;
        &lt;/ul&gt;";
?&gt;
</code></pre>

<p>I don't know why, but the when i click on this link it appears like that</p>

<p>htpp://localhost/my_site/<strong>localhost</strong>/menu/register.php</p>

<p>EDIT: How can i delete that additional localhost?</p>

<p>Thanks in advance</p>
