Read the file into an array using the file() function,
figure out how many lines there are in the array using the count() function,
print the last 10 elements of the array.
<?
$my_array = file(filenamep');
for ($t=sizeof($my_array)-10;$t<sizeof($my_array);$t++)
{
print $my_array[$t];
};
?>