SPLFILEINFO.GETREALPATH(3) 1 SPLFILEINFO.GETREALPATH(3) SplFileInfo::getRealPath - Gets absolute path to fileSYNOPSISpublic string SplFileInfo::getRealPath (void )DESCRIPTIONThis method expands all symbolic links, resolves relative references and returns the real path to the file.PARAMETERSThis function has no parameters.RETURN VALUESReturns the path to the file.EXAMPLESExample #1 SplFileInfo.getRealPath(3) example <?php $info = new SplFileInfo('/..//./../../'.__FILE__); var_dump($info->getRealPath()); $info = new SplFileInfo('/tmp'); var_dump($info->getRealPath()); ?> The above example will output something similar to: string(28) "/private/tmp/phptempfile.php" string(12) "/private/tmp"SEE ALSOSplFileInfo::isLink. PHP Documentation Group SPLFILEINFO.GETREALPATH(3)