root/trunk/web/perf/log.php @ 125

Revision 125, 368 bytes (checked in by andreu, 12 years ago)

syslog output parameters modification - new web page for monitoring site (log, introduction)

Line 
1<?php
2
3$res = `tail -50 /var/log/renetcol.log > /tmp/renetcol_log.txt`;
4
5$finputlog = fopen("/tmp/renetcol_log.txt",'r');
6
7print "<div id=\"contenu\">\n";
8
9print "<p>";
10print "<ul>";
11while (!feof ($finputlog)) {
12  $line = fgets($finputlog, 512);
13  $line = trim($line);
14  print "<li>$line</li>";
15 }
16print "</ul>";
17print "</p>";
18print "</div>\n";
19fclose($finputlog);
20
21?>
Note: See TracBrowser for help on using the browser.