NYCPHP Meetup

NYPHP.org

[nycphp-talk] how to grab original uri from error page

Daniel Convissor danielc at analysisandsolutions.com
Mon Feb 23 16:29:01 EST 2009


Hey Michael:

On Mon, Feb 23, 2009 at 03:59:52PM -0500, Michael Southwell wrote:
> I need to grab the original uri after having been redirected
> to an error page (like example.com/blah now that I'm in 404.php).

It's in $_SERVER['REQUEST_URI'].  My favorite way to figure stuff like 
this out is putting phpinfo() in the page you're curious about.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list