Start local PHP script w/ local Python script

旧时模样 提交于 2019-12-09 03:54:28

问题


The Python program I'm writing needs to start a local PHP script outside of Python's process. The program also needs to pass params to the PHP script. So far this seems to start the script:

os.system( path_to_script_here param param )

However, I'm pretty certain that Python remains running until the PHP script is complete.

I've also looked at the various os.spawn methods and I'm not sure which would be appropriate for my case. Any ideas?

Thanks!


回答1:


See: How to start a background process in Python?



来源:https://stackoverflow.com/questions/2931061/start-local-php-script-w-local-python-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!