Answers for "php run python script with arguments json"

PHP
0

php run python script with arguments json

PHP :

base64_encode(json_encode($bodyData))
then

json_decode(shell_exec('python ' . base64_encode(json_encode($bodyData)) );
and in Python I have

import base64
and

content = json.loads(base64.b64decode(sys.argv[1]))
Posted by: Guest on June-23-2020

Code answers related to "php run python script with arguments json"

Browse Popular Code Answers by Language