Note that this means that you will often get a slash or a dot back from dirname() in situations where the older functionality would have given you the empty string.
?php $path = "/ etc / passwd"; $file = dirname($path); / / $file contient" / etc "?