Url
class Url
Methods
Retrieve server name from $_SERVER
Retrieve server port from $_SERVER
Retrieve url scheme from from $_SERVER
Path is string after domain without filename
Path with file
$_GET is QueryString
No description
No description
Sometimes we must check inputed url is our selfUrl (same domain) or not to protected our System from RCE etc, via URL.
No description
No description
No description
Parsing URL with style!
No description
No description
Details
at line 43
static string
getDomain(bool $strict = true)
Retrieve server name from $_SERVER
at line 61
static string
getPort()
Retrieve server port from $_SERVER
at line 72
static string
getScheme()
Retrieve url scheme from from $_SERVER
at line 84
static string
getPath($callBack = '')
Path is string after domain without filename
at line 95
static string
getSelf($callBack = '')
Path with file
at line 107
static string
getQuery(string $callBack = '')
$_GET is QueryString
at line 116
static string
getReferer()
No description
at line 125
static bool
isValid(string $url)
No description
at line 138
static bool
isSelf(string $url)
Sometimes we must check inputed url is our selfUrl (same domain) or not to protected our System from RCE etc, via URL.
at line 143
static
isAdmin()
No description
at line 148
static
isOpac()
No description
at line 153
static
inXml()
No description
at line 164
static string|null
parse(string $url)
Parsing URL with style!
at line 179
__construct(string $url)
No description
at line 184
__call($method, $arguments)
No description