Posts Tagged ‘getcurrentpagename’

How to get current page URL using PHP?

While i searching for getting URL’s for current page, i found this script. I hope it will more useful for some developers to integrate. //This function returns the full url of the current page function getcurrentpageurl() { $pageURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { [...]