Well, i think you could to a
set_time_limit(time);
in your script..if you are expecting long execution... just specify the estimated time limit.. you want.
Another way is to edit phpx.ini (x = version number) found within the config directory... either inside the directory where httpd.conf is located or under the /usr/local/lib .. it depends.. inside the phpx.ini ... you can set the max_execution_time variable to a time longer than the current setting.
🙂