Use realpath() to handle php / rira symlinks