【发布时间】:2014-12-03 17:41:09
【问题描述】:
我正在尝试从 php 脚本调用 python 脚本。当我在 linux 命令提示符下运行 PHP 脚本时,python 会正确执行。但是当我在 web 服务器上运行 php 脚本时,python 脚本没有被执行。谁能告诉我为什么会这样以及我可以做些什么来纠正它?
【问题讨论】:
我正在尝试从 php 脚本调用 python 脚本。当我在 linux 命令提示符下运行 PHP 脚本时,python 会正确执行。但是当我在 web 服务器上运行 php 脚本时,python 脚本没有被执行。谁能告诉我为什么会这样以及我可以做些什么来纠正它?
【问题讨论】:
You can run it from linux command,because the system has python interpret.
So I think you should check whether the server support interpret python.
(i.e.some server may support asp instead of php for same reason)
【讨论】: