2

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?

5

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.