initial commit
This commit is contained in:
15
website_data/html/get_debug_log.php
Normal file
15
website_data/html/get_debug_log.php
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
<?php
|
||||
|
||||
if(isset($_GET['lines'])) {
|
||||
$lines = $_GET['lines'];
|
||||
}
|
||||
else {
|
||||
$lines = 20;
|
||||
}
|
||||
|
||||
$date_today = date("Ymd");
|
||||
echo "<pre>".shell_exec("tail -". $lines ." /home/zutritt/Documents/sarah/logs/".$date_today."_debug_log.csv")."</pre>";
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user