How to get the current HTTP request URL programmatically in PHP?

See also: