Jump to content

Archived

This topic is now archived and is closed to further replies.

master82

Custom Error Page

Recommended Posts

Im thinking of creating my own custom error page (error 401, 404 etc) and know how easy it is to set these up. But what i was hoping to add to the 404 (or at least i think its the 404 error) is to find out what page the user typed in. so...

...is it possible to copy what was entered into the address bar and store it into the database?

Share this post


Link to post
Share on other sites
Prehaps you can use $_SERVER['REQUEST_URI']

$_SERVER['HTTP_REFERER'] and $_SERVER['REQUEST_URI'] is the only variables which store where the user can from, or for the file the user has requested respectively.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.