PHP Log Tail Revisitied
February 17, 2009 – 2:31 pmThe brilliance of programming...
Last year I needed to tail a file in PHP. I whipped this out.
Today I needed to do it and came up with this:
$output = `tail -n 150 /var/log/messages`;
$tail_str = "<pre>$output</pre>";
Weee... don't know what the hell I was thinking last time.
