Actually... $PATH_INFO does what you need... Without needing any extra stuff. :P > $currentPage = basename($PHP_SELF); -m