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.

PHP commands to request full page url and page title?

Discussion in 'PHP' started by fatabbot, Dec 27, 2006.

  1. #1
    Hello,

    Does anyone know if it's possible to request a string with the full url of the page a visitor is on ? Same for the page title...

    I need this because i want to add a "digg this" button on dynamic pages.

    Thank you in advance
     
    fatabbot, Dec 27, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mad4, Dec 27, 2006 IP
    fatabbot likes this.
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    
    
    $uri = 'http'. ($_SERVER['HTTPS'] ? 's' : null) .'://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    
    
    PHP:
     
    nico_swd, Dec 27, 2006 IP
  4. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #4
    fatabbot, Dec 27, 2006 IP