Search

Get actual url PHP

> Get current url in web browser

Description
Get actual url



$url = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";


SEE ALSO