PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
tursiops
Forum Newbie
Posts: 3 Joined: Sun Nov 07, 2004 8:50 am
Post
by tursiops » Sun Nov 07, 2004 8:52 am
Hi all!
I just wondered how I could know what page the user wanted to access that caused the 404 error.
Thank you in advance.
Deemo
Forum Contributor
Posts: 418 Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC
Post
by Deemo » Sun Nov 07, 2004 8:54 am
tursiops
Forum Newbie
Posts: 3 Joined: Sun Nov 07, 2004 8:50 am
Post
by tursiops » Sun Nov 07, 2004 8:59 am
I already used this variable to know what was the last page visited. But the page the user wanted to visit is not the same no?
tursiops
Forum Newbie
Posts: 3 Joined: Sun Nov 07, 2004 8:50 am
Post
by tursiops » Sun Nov 07, 2004 9:11 am
I found it:
REQUEST_URI'
The URI which was given in order to access this page; for instance, '/index.html'.
Thank you for the url.