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