current file name

Get the current file name.

$pageName = basename($_SERVER['PHP_SELF']);