SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast MAC's Avatar
    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!


  2. #2
    SitePoint Enthusiast MAC's Avatar
    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

  3. #3
    RAGE
    SitePoint Community Guest
    I prefer using $PHP_SELF ...

    -----------------------
    Kryogen WebHosting - we run php4


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •