that's is a problem i stumble sometimes with arrays.
Thanks for the reply. I have tried that, but I don't get anything to show up in the output for some reason. I was initally using foreach(). When you use array_reverse(file('')); does that read the text file lines from the bottom up?
I don't want to read each line in reverse, I want to read the entire text file lines in reverse, but keep the lines data in the correct order.
are you sure there is not something else that is conflicting with the code? maybe the variable $path is used somewhere else, or your file function is not supported in your php installation (I don't think that might be the case, but still), or maybe your file is protected?
It's been a while since I worked with files
The Following User Says Thank You to tony For This Useful Post: