Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP quickie

Options
  • 20-01-2006 11:51am
    #1
    Registered Users Posts: 648 ✭✭✭


    hi

    im trying to get the current full url of the page im on.
    if the page is index.php?test=5 then $_SERVER only gives me index.php

    how can i access the full url?

    TNX


Comments

  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    You can get the full link by

    [php]
    $link = $_SERVER."?".$_SERVER;
    [/php]


Advertisement