OK. Here is the basic story (check out the manual pages for each of the commands).
Open the file for reading (pointer at the beginning).
while ($string = fgets ($FILE, 1000)
{
array_push ($stack, $string);
}// reads the file into an array 1 line
while ($string = array_pop ($stack))
{
echo $string;
}
Anyway, this is off the top of my head. Hoe it is useful. This should be close to what you need to read the file line by line into your array and then print them out LIFO (Last In, First Out).
Best of luck,
Chris Travers