I'm using $_SERVER['REQUEST_URI'] to get the page that i previously came from.
This returns the page and also the directory it sits in.
How can i just get the page i came from?
request_uri
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
http://ca.php.net/manual/en/function.pathinfo.php might be of service 