Forum Moderators: coopster
<html>
<head>
<title>Realtime Raw Logs</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div align="left">
<strong>
<?php
system("date");
?>
</strong>
<br>
<br>
<?php
echo '<pre>';
$last_line = system('wc -l /var/www/DIR TO SITE ¦ sort -u', $retval);
echo '
</pre>
<hr />Last line of the output: ' . $last_line . ' ' ;
?>
<br>
<?php
echo '<pre>';
$last_line = system('tail -f /var/www/DIR TO SITE ', $retval);
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
</div>
</body>
</html>
On a side note, I hope you have this page secured some how so that only you can access the script. It really isn't a good idea to have this in the publicly accessible area. As a matter of fact, why even use html and php to view the logs? Connect via secure tunnel and run your system commands using secure shell access.
So brings me to assume its waiting to long for this output.
So would it be one of these?
output_buffering = on
max_execution_time = 1000
session.gc_maxlifetime = 15000