[eluser]Chris Newton[/eluser]
From the PHP manual: Realpath expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path . and return the canonicalized absolute pathname.
As far as I know, pathinfo does not do that.