I have Apache server on my windows machine.
From PHP script I start .bat
file using exec command(synchronously!).
From my batch script I run another executable(WinDBG
). I run it asynchronously(using cmd
start command) wait some time and kill if it is still running.
If I run .bat script from cmd
it works as planned(asynchronously).
But if script is started from PHP exec
command "start" works synchronously. And it is the same code.
I think that the problem is that PHP script run as a windows service. And therefore start work synchronously.
I should start WinDBG
asynchronously to have ability terminate it