last mail got accidently sent before completion - please reply to that, or the OP and not this. I don't have much of a problem with code that takes a less blatent inspiration of the following: $file = "filename.txt"; $file = file_get_contents($file); $file = explode("\n", $file); $file = array_reverse($file); $file = join("\n", $file); echo $file; I do however consider $filename - "whatever.txt"; I perfer to abstract "configuration issues" $rev_content = join("\n", array_reverse(file($file)))'; echo $rev_contaent; to be cleaner >