proggybilly
Programmer
Hey all,
I am trying to write a web interface that will either display the last 100 lines of a log file or display the whole thing depending on what the user chooses. I can get it to display but not with the proper formatting.
I have used this code to get the last 100 lines
$display = system("tail -100 /var/log/mylog.log");
however when I echo that to the screen it does not display properly.
Can someone please help me
I am trying to write a web interface that will either display the last 100 lines of a log file or display the whole thing depending on what the user chooses. I can get it to display but not with the proper formatting.
I have used this code to get the last 100 lines
$display = system("tail -100 /var/log/mylog.log");
however when I echo that to the screen it does not display properly.
Can someone please help me