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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -