Well, this is one of those applications where a database would be a better design choice (been there, done that!) ... but here is a quick example of how to read a data file and process it backwards.
First, let's imagine that you have a data file imaginatively named "datafile" and containing these lines:
1:first entry:more stuff
2:second entry:more stuff
3:third entry:more stuff
Now apply this code:
<?
function myfunc($item)
{
// this is where you would
// write code to parse your
// delimited file ... but we
// will just ...
echo " $item <BR>";
}
// read the data file into an array
$myfile = file("datafile");
// turn the whole array upside down
$myfile = array_reverse($myfile);
// walk it, applying myfunc
array_walk($myfile, 'myfunc');
?>
When you run this code against datafile, you will get something like this:
3:third entry:more stuff
2:second entry:more stuff
1:first entry:more stuff
... which is what you're looking for.
Of course, you need to rewrite myfunc() so that it actually does something useful instead of just echoing the line.