I'm sure there is an easy answer, but I cannot find it in the manual.
I have a script in a folder on my site and I want to get the page name from the script. I am using
====
$this = $REQUEST_URI;
Print "$this<br>";
However, this will print the folder name also. Example, if this page is http://www.somedomain.com/folder2/script.php , the output is "/folder2/script.php".
I want to receive output of the "page name" only. Ex. "script.php". The folder names change so there is no easy way to strip the folder name.
What am I missing? Any suggestions?