We are developing an ide for c, c++, using php. It takes a 'c' source code from html form element and compile it in gcc linux compiler with the help of 'exec()' php function. Also it returns error and output to the browser window. We did it successfully, but we have prblm in compiling a infinite loop source code. So please, help me to make a timeout on infinite loop execution.