This commit is contained in:
Marc Beninca 2021-04-05 11:31:51 +02:00
parent 29a88fc652
commit 6ada877b7f
5 changed files with 100 additions and 0 deletions

18
test/web.php Normal file
View file

@ -0,0 +1,18 @@
<?php
foreach (array(
'REMOTE_ADDR',
'SERVER_ADDR',
'HTTPS',
'REQUEST_SCHEME',
'HTTP_HOST',
'SERVER_NAME',
'SCRIPT_NAME',
'QUERY_STRING',
) as $variable)
putenv("$variable=".getenv($variable));
system(dirname(getenv('SCRIPT_FILENAME')).'/'.
basename(getenv('SCRIPT_FILENAME'),'.php').'.py');
?>