Forum Moderators: coopster
Anyone would think that some of these methods should return the file name:
$_SERVER['SCRIPT_FILENAME']
$_SERVER['SCRIPT_NAME']
$_SERVER['REQUEST_URI']
But *ALL* of those methods return "projects/main.php"... d'oh! How can I retrieve the file name ONLY, without path?
Thanks in advance