$righe = file('data.php');
for ($x=sizeof($righe); $x >=0; $x--) {
echo $righe[$x];
}



p.s. x incertezze: http://it.php.net/file