Forum Moderators: coopster

Message Too Old, No Replies

PHP running out of time

How do you extend the length of time php can run?

         

HeadBut

5:25 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



I'm guessing my script it getting to long. Is there a setting I can use to lengthen the minimum time it can run for one script. Will the browser time out? If so, how do you feed the browser little bits of info as you calculate it?

Hope thats not too many question in one post

Thanks
Matt

sned

5:45 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



You can use the ini_set [us2.php.net] function:

ini_set('max_execution_time', '30');

also, if you want to send output to the browser while the script is running, use the flush() [us2.php.net] method.

-sned