Python脚本未在Web服务器上运行

时间:2014-10-08 22:25:48

标签: php python web interface

我试图从php脚本调用python脚本。当我在linux命令提示符下运行PHP脚本时,python会正确执行。但是当我在Web服务器上运行php脚本时,不会执行python脚本。任何人都可以告诉我为什么会这样,我能做些什么来纠正它?

1 个答案:

答案 0 :(得分:0)

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)
相关问题