SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Need to get document url in PHP
Hybrid View
-
May 13, 2000, 15:33 #1
- Join Date
- Feb 2000
- Location
- Somewhere on the heart of Dixie
- Posts
- 65
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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!
-
May 13, 2000, 16:00 #2
- Join Date
- Feb 2000
- Location
- Somewhere on the heart of Dixie
- Posts
- 65
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I just found out how! The var is $REQUEST_URI
-
May 14, 2000, 18:10 #3RAGESitePoint Community Guest
I prefer using $PHP_SELF ...
-----------------------
Kryogen WebHosting - we run php4
Bookmarks