Update gen.php

This commit is contained in:
v3d 2022-05-10 23:59:45 +00:00
parent 4371e3d2f9
commit 63b8649e9a

View File

@ -268,7 +268,7 @@ $torname = file_get_contents('/home/pi/pivilion/torname');
$tornamemode = preg_replace('/\s+/', '', $torname);
$output = ob_get_contents(); // get contents of trapped output
//write to file, e.g.
$newfile = "/var/www/html/pivilion/gen/index.html";
$newfile = "/var/www/html/pivilion/gen/index.php";
$file = fopen($newfile, "w");
fwrite($file, $output);
fclose($file);