PHP will exit with the following error once it reaches the maximum allowed time for it to execute your scripts;

Fatal error: Maximum execution time of 30 seconds exceeded in yourscript.php

30 seconds is the default timeout, if not specifically configured.

You can avoid this error by increasing the maximum execution time for PHP. This can be set globally or from within your PHP scripts from these options;