Hi,
I was wondering if anybody know how, or is it possible, to set a timer when running a script using 'exec()'.
The situation I'm having is I need to run a script using 'exec()'. But in some circumstances, the execution of the script will hang, leaving the whole php to hang too, without any message or warning as the rest of the php codes are not executed.
The solution I'm looking for (hopefully there is) is to set a timer after running the script using 'exec()' and when time is up, some signal should be returned and the php code should capture the signal and prompt a warning or message regarding the execution had timed out, or at least something to indicate that the execution of the script is not successful, so a message can be display.
Thanks in advanced and appreciate all the ideas.
Regards,
Brendan.