Wait hang on, i have just confused myself as to why i created this thread!
I just realised i just need to use this:
PHP Code:
$_SERVER["REQUEST_URI"]
I was already using this except like this
PHP Code:
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
Wow i'm dumb
Bookmarks