Timeout on exec command

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Timeout on exec command

Post 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!
Post Reply