• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

getting address bar string with PHP

Question

Rathamon    0

I'm trying to get the contents of the clients address bar via PHP , I tried $PHP_SELF but that only gives me the server path

what I need is the entire thing

like

http://www.yaddayadda.com/stuff/whatever.p...s&whatever=that

if you know how to do this.. thanks :D

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Rathamon    0

nevermind , worked it out

$fulluri = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];

if anyone cares

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.