src/net/Net.php
public static function pageURL() {
		$URL = "http";
		if(!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
			$URL .= "s";
		}
		$URL .= "://".$_SERVER["SERVER_NAME"];
		if($_SERVER["SERVER_PORT"] != "80") {
			$URL .= ":".$_SERVER["SERVER_PORT"];
		}
		$URL .= $_SERVER["REQUEST_URI"];
		return $URL;
	}
public static function pageURL() {
		$URL = "http";
		if(!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
			$URL .= "s";
		}
		$URL .= "://".$_SERVER["SERVER_NAME"];
		if($_SERVER["SERVER_PORT"] != "80") {
			$URL .= ":".$_SERVER["SERVER_PORT"];
		}
		$URL .= $_SERVER["REQUEST_URI"];
		return $URL;
	}
public static function pageURL ( ) { $ URL = "http" ; if ( ! empty ( $ _SERVER [ "HTTPS" ] ) && $ _SERVER [ "HTTPS" ] == "on" ) { $ URL .= "s" ; } $ URL .= "://" . $ _SERVER [ "SERVER_NAME" ] ; if ( $ _SERVER [ "SERVER_PORT" ] != "80" ) { $ URL .= ":" . $ _SERVER [ "SERVER_PORT" ] ; } $ URL .= $ _SERVER [ "REQUEST_URI" ] ; return $ URL ; }
Returns URL of page, where function is called.
@return string URL of page
Returns URL of page where function is called .