I have a php file like this:
System (' python/home/yangxu/test/providerinfo/smx_sensor.py bl460c-g8-2.test ');
echo ' success ';
End PHP
?>
If PHP temperatureprovider.php is executed at the command line, the Python script inside can execute;
But I run this php file through the Web page, only output the ' success ', Python script does not execute, this is how to do, what solution, thank you master advice!
Reply to discussion (solution)
The file path and URL format for executing python need to be checked
Bl460c-g8-2.test this dozen perfect path to try ~
The file path and URL format for executing python need to be checked
I have changed the path:
System ('/usr/bin/python/home/yangxu/test/providerinfo/smx_sensor.py bl460c-g8-2.test ');
But there is still no response, what will be the problem?
Did you solve the problem??? I also met the same problem with you!!!