I use PHP exec()
function to make system calls on windows env.
Now, I want to make sure that if i make a call, it doesnt go on forever. I want to kill the process after $x
seconds. For example:
exec('2.exe');
If 2.exe
runs for more than 15 seconds, kill 2.exe.
How can I do this with PHP?