PHP: How do I get the URL a file is in?
<p>I can't seem to find a super-global for this. Basically, if a PHP file is executed on, say, <code>http://www.example.com/services/page.php</code>, I would like to retrieve <code>http://example.com/services</code>. How do I achieve this?</p>
