add PHP built-in server example script

This commit is contained in:
2024-08-10 17:17:23 +02:00
committed by GitHub
parent b5927d8482
commit 7a0ee47c25
+5
View File
@@ -0,0 +1,5 @@
<?php
$template = str_replace(["<%=", "<%", "%>"], ["<%echo ", "\nRAW\n", "\ncat <<- RAW\n", ""], file_get_contents('index.sh.html'));
$query_string = $_SERVER['QUERY_STRING'];
echo shell_exec("GET=\"$query_string\"; $template");
?>