Gets current URL

Returns full url, including protocol, host and path.

php
fork add to bundle source
function current_url() { $protocol = $_SERVER['HTTPS'] ? 'https' : 'http'; return $protocol . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; }
create log ...inout