I can't figure out which php command will return the name of the current page that the script is on. I know $PHP_SELF returns the current path but i am a few directories deep and I only want it to return "main.php" not "/this/dir/main.php" Any siggestions on what will work? Thanks in advance.