Page 1 of 1

how do i extract the page name only from a url address?

Posted: Mon Oct 03, 2005 10:20 am
by Antek_Ryu
Hi All

How can I extract the page name from the url, example I have done this

Code: Select all

$theuri = $_SERVER['REQUEST_URI'];

The result I get is /directoryA/index.php

All I want to do is get index.php




Kind Regards
Antek

Posted: Mon Oct 03, 2005 10:42 am
by feyd

Posted: Tue Oct 04, 2005 11:22 am
by Antek_Ryu
Thanks it worked!!!