I have PHP script, which is requested by user. In this script I want to run C++ script(exe), but not wait until this script finishes(because this script does some post-process with data, which PHP doesn't care about). Is there anyway to do this on Apache?
1条回答 默认 最新
- dongmoxin7111 2011-06-24 11:26关注
You want the php exec function. Bear in mind the comment on the page about apache:
When calling exec() from within an apache php script, make sure to take care of stdout, stderr and stdin (as in the example below).
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报