PHP – Get the Current URL By Forrest Smith - Drempd.com I always end up looking for how to get the current URL in PHP. This is it: $_SERVER['REQUEST_URI'];