I'm trying to include PHP files as the header and footer of my web pages. The output of the PHP file needs to change slightly based on what directory in my website the document with the header and footer is in.
Is there any environmental variable like DOCUMENT_URL in PHP, so that I can find out what url the browser is requsting?

Thanks!