|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
URL_Current() = Gets the current URL (IIS Safe)
public function URL_Current() {
$r = (! is_null($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
$r .= '://' . $_SERVER['HTTP_HOST']; if ($_SERVER['SERVER_PORT'] != '80') $r .= $_SERVER['SERVER_PORT'] . ':';
$r .= $_SERVER['REQUEST_URI'];
return $r;
}
|
|
|
|
Entire Thread
|
URL_Current() = Gets the current URL (IIS Safe)
|
Russ
|
11/01/09 11:41 AM
|
|
|
|