I have a python code running getting values from a raspberry pi. I want passed php (CI) value to the python script for run raspberry pi and how to get python result in php (CI).
Asked
Active
Viewed 75 times
0
-
2this may help you http://stackoverflow.com/questions/166944/calling-python-in-php – Amit Ray Jun 07 '16 at 13:23
-
You can use command line to execute your python script. Take a look at the [exec](http://php.net/manual/en/function.exec.php) function. – Alexander Popov Jun 07 '16 at 20:33