php trick

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

Post Reply
tursiops
Forum Newbie
Posts: 3
Joined: Sun Nov 07, 2004 8:50 am

php trick

Post by tursiops »

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 »

tursiops
Forum Newbie
Posts: 3
Joined: Sun Nov 07, 2004 8:50 am

Post by tursiops »

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 »

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.
Post Reply