aboutsummaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--php/readfile.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/php/readfile.php b/php/readfile.php
new file mode 100644
index 0000000..12c72da
--- /dev/null
+++ b/php/readfile.php
@@ -0,0 +1,9 @@
+<?php
+$filename =$_GET['filename'];
+
+$filename = '/var/modbuslog/'.$filename;
+
+$filecontents = file_get_contents($filename, FILE_USE_INCLUDE_PATH);
+
+echo $filecontents;
+?>