简体   繁体   中英

Start and stop a (commandline) program and get its outputs

Is it possible to start and stop a commandline program from php (on the same machine)?

And retrieve its ouput on the command line from within PHP?

The question is related to the following question I asked regarding VB: Cancelling background-worker

It works in VB now and I would like to create the same functionality using PHP.

It should work in both Linux and Windows (it would be great if it also works on MAC, however this is not necessary).

有关系统exec命令,请参见PHP文档

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM