php set_time_limit() function

illustrate :
​ ​​php​​.ini), if the seconds are set to 0, it means there is no time limit.
When calling this function, set_time_limit( ) will restart the calculation of the maximum execution time from zero, that is, if the maximum execution time is the preset 30 seconds, and before calling this function set_time_limit(20) It took 25 seconds to execute the program, the maximum time the program will run will be 45 seconds.
Note: When PHP is running in safe mode, set_time_limit( ) will have no effect unless safe mode is turned off or the time in the structure file (called php3.ini in PHP3 and php.ini in PHP4) is modified limit.
Example :set_time_limit(1000);

Leave a Reply

Your email address will not be published. Required fields are marked *