Page 1 of 1

Timeout on exec command

Posted: Tue Nov 25, 2008 6:29 am
by panic!
does anyone know how I can set a timeout on exec before I call it

I want something like:

Code: Select all

 
exec('biglongcall') // dont mind how long this takes
 
//set a timeout here
 
exec('short'); //dont want this to take longer than 10 seconds.
 
 
Thank y'all!