Getting a URL in PHP
<p>Suppose my current <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator" rel="nofollow">URL</a> is <code>http://www.example.com/person/peter.html</code>. How can I use PHP to get "<a href="http://www.example.com/person/" rel="nofollow">http://www.example.com/person/</a>" (just exclude "peter.html")? </p>
