Can readfile()output the contents of a file in reverse order? (output last line first as in the ls -r command)
If not, then can fwrite() enter lines at the BEGINNING of the file?
No. And no.
However, file() stuffs a file into an array. Reverse the array, implode, and output. See the manual for the appropriate function calls.
Awsome! Thanks for pointing me to the right direction!