How do I print the PHP script file name on a page? I tried $_SERVER['PHP_SELF'] but it printed /folder/index.php, but I can't have it like that. I need it to print index.php.
Thanks.
use basename($_SERVER['PHP_SELF']) then