Getting the full URL page in PHP

Shovel

Part of the furniture
Joined
Dec 22, 2003
Messages
1,350
Quickie:

I have a link generated at the bottom of my webpages that links directly into the XHTML validator. However, since my entire website is served up by index.php, I need to include the page variables for my URL in that URL.

Is there a dead easy way to grab the URL, query string intract, and output it like I want.

E.g. If it were this messageboard: I want to generate: "https://forums.freddyshouse.com/newthread.php?do=newthread&f=5" not "https://forums.freddyshouse.com/newthread.php".

Thanks :)
 

wyrd_fish

Fledgling Freddie
Joined
Dec 27, 2003
Messages
537
$PHP_SELF, this is a global variable that should work as long as safe mode is not enabled...

failing that you can just reconstruct the URL that linked to the page with the variables
 

Users who are viewing this thread

Top Bottom