master82 Posted September 8, 2006 Share Posted September 8, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/20106-custom-error-page/ Share on other sites More sharing options...
wildteen88 Posted September 8, 2006 Share Posted September 8, 2006 To get where the user intended to go use $_SERVER['HTTP_REFERER']. Quote Link to comment https://forums.phpfreaks.com/topic/20106-custom-error-page/#findComment-88289 Share on other sites More sharing options...
Jenk Posted September 8, 2006 Share Posted September 8, 2006 It's not reliable though :) Quote Link to comment https://forums.phpfreaks.com/topic/20106-custom-error-page/#findComment-88291 Share on other sites More sharing options...
wildteen88 Posted September 8, 2006 Share Posted September 8, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/20106-custom-error-page/#findComment-88293 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.