1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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