开发者

Run c++ script on server

开发者 https://www.devze.com 2023-03-15 16:06 出处:网络
I have PHP script, which is requested by user. In this scri开发者_运维技巧pt I want to run C++ script(exe), but not wait until this script finishes(because this script does some post-process with data

I have PHP script, which is requested by user. In this scri开发者_运维技巧pt 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?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号