我这有这么一个php文件:
<?php //temperatureProvider.php //display page for service details
system('python /home/yangxu/test/providerinfo/smx_sensor.py bl460c-g8-2.test');
echo 'success';
//end php
?>如果在命令行执行php temperatureProvider.php,里面的python脚本可以执行;
可是我通过网页运行这个php文件的时候,只输出了‘success’,python脚本没有执行,这个是怎么回事呢,有什么解决办法吗,谢谢高手指教!pythonphp脚本
<?php //temperatureProvider.php //display page for service details
system('python /home/yangxu/test/providerinfo/smx_sensor.py bl460c-g8-2.test');
echo 'success';
//end php
?>如果在命令行执行php temperatureProvider.php,里面的python脚本可以执行;
可是我通过网页运行这个php文件的时候,只输出了‘success’,python脚本没有执行,这个是怎么回事呢,有什么解决办法吗,谢谢高手指教!pythonphp脚本
system('/usr/bin/python /home/yangxu/test/providerinfo/smx_sensor.py bl460c-g8-2.test');
不过还是没有反应,还会有什么问题吗?