Category: Tutorials

PHP Get current page URL

php

A useful function to get and display the current page url. <?php function getPageURL() { $pURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { $pURL...

More