Finding the whole address

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

Finding the whole address

Post by Citizen »

When I use

Code: Select all

$link = $_SERVER['PHP_SELF'];
it comes up as just the base link like

Code: Select all

www.domain.com
but i want to find the whole address, so that it comes up as

Code: Select all

www.domain.com/arcade.php?variable=9
so that i can add more variables without losing the old one

so that i can use

Code: Select all

$link&variable2=3
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

We've had just-a-few™ discussions on this. :?

search.php?search_keywords=geturl
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Code: Select all

print_r ($_SERVER);
-NSF
Post Reply