DownloadPHP Site class
This class can get URLs related with the current request site.
Feature
This class can get URLs related with the current request site.
It checks the current HTTP request values and returns several types of URLs related with the current site. Currently it can return:
-
Site URL
-
Current page URL
-
Current site http or https protocol
-
Server name
-
TCP port
-
Current request Uri
-
An array with the URL path split in parts separated by the slash character : /
-
Etc.
It can also redirect the current request to another URL, or the previous page using the referrer URL.
|