Hi there, I'd do it like this: Read your file into an array, then use the array_reverse() function on it, and loop through the first 3 records. For Example:
$fp = file($filename, "r") or die("Could not open file: $filename");
$contents = fread($fp, filesize($filename));
fclose($fp);
$r_contents = array_reverse($contents);
for($i = 0; $i < 3; $i++) {
echo $r_contents[$i]."<br />";
}