Read the echo output of php file in python -
i have database on backendless cloud service has no support python.
so i'm establishing connection between python code , database using php files.
the insertion working fine there no response php file python.
however in retrieving need php file echo output , python script read echo value. how can this?
thanks.
use subprocess
module execute php code python.
assuming php script write standard output subprocess.check_output()
easiest, or use subprocess.popen()
if need better control of child process.
if using python >= 3.5 can use subprocess.run()
.
Comments
Post a Comment