How do I control script execution time in PHP

Posted by mathew on Stack Overflow See other posts from Stack Overflow or by mathew
Published on 2010-06-04T06:10:37Z Indexed on 2010/06/04 6:19 UTC
Read the original article Hit count: 237

Filed under:

for example I do have 5 PHP functions on a page which execute when loading. each functions has its own processing time and some of them take more time sometimes to complete the task. hence the total loading time of the said page is slow.

my question is how do I control execution time for each script and set time limit for the same. I am aware that there is an in built function in PHP called set_time_limit(); but it gives fatal error if time is beyond the maximum limit...

© Stack Overflow or respective owner

Related posts about php