Create build.php

Created build.php file
Added new php code to search for build file and if it doesn't find it, it shows the file not found error
This commit is contained in:
Carlos V authored and GitHub committed 2023-08-07 17:16:20 +02:00
1 parent 25bdc36183
commit 56604f702f
1 file changed
+8
+8
View File
@@ -0,0 +1,8 @@
<?php
$file = "/home/pi/pialert/front/buildtimestamp.txt";
if (file_exists($file)) {
echo date("Y-m-d", ((int)file_get_contents($file)));
} else {
echo "File not found";
}
?>