Get the Current URL in PHP Both HTTP and HTTPS, $CURRENT_PATH = (isset($_SERVER[‘HTTPS’]) ? “https” : “http”) . “://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
Read MoreSpread Your Knowledge
Get the Current URL in PHP Both HTTP and HTTPS, $CURRENT_PATH = (isset($_SERVER[‘HTTPS’]) ? “https” : “http”) . “://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
Read More