Hi guys
I want to print just the filename from somthing like $_SERVER[PHP_SELF];

The directory varies could be
/dir/dir/dir/filename.php
or just /dir/filename.php

anyway I want to pick out the filename.php part regardless of the directory its in..

anyone got some tips?

thanks
-Arron

    istead of having to feed it a dir path u can use

    $var = basename($_SERVER["PHP_SELF"])
      Write a Reply...