Click to See Complete Forum and Search --> : checking last page


vicious
05-29-2003, 05:18 AM
okay,
say I have the page:
www.mydomain.com/index.php
now I click on a link to www.mydomain.com/home.php
However, this page doesn't exisit (404 error)
Now I'm taken to:
www.mydomain.com/error404.php
I want a script that returns:
1) The requesting page (index.php) as $request
2) The requested page (home.php) as $page

Tim158
05-29-2003, 05:36 AM
$page = $HTTP_REFERER;

That bit of code will get you $page but I don't know how you can get $request.

Nevermore
05-29-2003, 06:52 AM
$REQUEST_URI I think

vicious
05-29-2003, 08:47 AM
is $REQUEST_URI the $request cijori?
and thanks Tim158!

Nevermore
05-29-2003, 08:48 AM
Yes, I think so.

vicious
05-29-2003, 09:22 AM
thanks