Answers for "PHP Forward POST content into Python script"

PHP
1

PHP Forward POST content into Python script

<?php
$post_content = json_encode($_POST);
$command = "python3 middle.py {$post_content}";
$output = passthru($command);
echo $output;
?>
Posted by: Guest on March-19-2022

Browse Popular Code Answers by Language