How to print curret url and source url

Discussion in 'PHP' started by strgraphics, Dec 16, 2011.

  1. #1
    Hi friends,

    I would like to print current web page URL and URL from where i got request for current web page url.

    Any suggestions please...?

    Thanks so much.
     
    Solved! View solution.
    strgraphics, Dec 16, 2011 IP
  2. #2
    Current Page: (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
    Referer Page: $_SERVER['HTTP_REFERER']
     
    ThePHPMaster, Dec 17, 2011 IP
  3. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Hi friend, you rock..!!!!!!!!
    Thanks a lot.

     
    strgraphics, Dec 17, 2011 IP