Online dirname( ) function


string dirname ( string $path )
Given a string containing the path of a file or directory, this function will return the parent directory's path that is levels up from the current directory.