Read Log File in linux (debian) using php

<?php

exec("/usr/bin/tail -n 10 /var/log/auth.log",$x);


 foreach ($x as $value)
 {
echo $value ;
echo '</br>';
echo '</br>';

 }

?>

No comments:

Post a Comment

Pages