usagizmo
12/20/2017 - 12:07 PM

Get current uri

<?php
$currentUrl = (empty($_SERVER["HTTPS"]) ? "http://" : "https://") . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];