Page 1 of 1

php trick

Posted: Sun Nov 07, 2004 8:52 am
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.

Posted: Sun Nov 07, 2004 8:54 am
by Deemo

Posted: Sun Nov 07, 2004 8:59 am
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?

Posted: Sun Nov 07, 2004 9:11 am
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.