php get the name of the script code example Example: php current file name basename(__FILE__, '.php');