Help with " $_SERVER['HTTP_REFERER'];"

Discussion in 'PHP' started by astrohope, Apr 7, 2009.

  1. #1
    Is there any script = " $_SERVER['HTTP_REFERER'];" ? i am using this script on page recommendation.
     
    astrohope, Apr 7, 2009 IP
  2. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #2
    krishmk, Apr 7, 2009 IP
  3. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #3
    It's hard to understand, what you want to solve, but - instead of using $_SERVER['HTTP_REFFERER'], u can try JavaScript ( check history length + last entry ).
     
    ActiveFrost, Apr 7, 2009 IP
  4. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #4
    What do you mean by is there any script = $_SERVER['HTTP_REFERER'];?

    $_SERVER['HTTP_REFERER'] shows the website that refer the visitor to your page.

    - ads2help
     
    ads2help, Apr 7, 2009 IP
  5. parthiphp

    parthiphp Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    $_SERVER['HTTP_REFERER'] is one of the server variable in php. This variable return the url of previous page(that means navigated pae).
     
    parthiphp, Apr 7, 2009 IP
  6. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #6
    some programmers use this reserve variable to return back to last page visited, after sending a form value to another page. The visitor will not trying to find the last visited page.
     
    bluebenz, Apr 7, 2009 IP