Note that due to realpath caching this method will return false when the file has been renamed or unlinked by other processes.Example:<?php$info = new SplFileInfo('example.php');$info->getRealPath(); // /path/to/example.phprename('example.php', 'foobar.php');$info->getRealPath(); // false?>