# Preface when using ' PHP ' to render page pages, if the program processing time is very long, more than the configuration file (php.ini) set the timeout period, you will see the following prompt: >maximum execution time of seconds Exceeded for example: import large amounts of data into a database; Request resource time too long ... # problem PHP program time-out error message What do I do? # method * Directly modify the configuration file (php.ini) [Timeout] "#默认的最大执行时间是30s, can be modified according to their own needs # if it is 0, that is, never expires max_execution_time = 30;" * Indirect modification of configuration information [Timeout] Add the following code to the PHP execution file: "' Phpset_time_limit (0);" * Refresh output buffer [memory overrun] 1. Perform deferred execution in the loop: Add function ' Sleep ' 2. Output buffering: Simultaneous use of ' OB The _flush () ' and ' flush () ' functions send data to the browser ' php
'; Ob_flush (); Flush ();} ```