duandanai6470
2016-01-15 10:31
浏览 45
已采纳

如何在谷歌应用引擎上从php.ini启用exec功能

How to enable exec function from php.ini at google app engine my php code

echo 'test';
 $item='example';
    $tmp = exec("python test1.py $item");
    echo $tmp;

my python code

import sys
print sys.argv[1]

exec function not working

图片转代码服务由CSDN问答提供 功能建议

如何在google app engine php代码中启用php.ini的exec函数 \ n

  echo'test'; 
 $ item ='example'; 
 $ tmp = exec(“python test1.py $ item”); 
 echo $ tmp; 
    
 
 

我的python代码

  import sys 
print sys.argv [1] 
   
  
 

exec功能不起作用

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doucong1992 2016-01-16 19:59
    已采纳

    It is not possible to run exec() on App Engine PHP.

    However, you can deploy a python application if you want to?

    Or, as another option you can deploy a python application as a module and call it from your PHP code via a web service URL

    打赏 评论

相关推荐 更多相似问题