Forum Moderators: coopster

Message Too Old, No Replies

How will you increase execution time of PHP for processing ?

         

ifuturz

9:53 am on Jun 28, 2012 (gmt 0)



How will you increase execution time of PHP for processing large set of records?

rocknbil

4:00 pm on Jun 28, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First make sure you're database is optimized (indexes where needed, etc.) then you can use .htaccess directives or, if not allowed, modify the site's php.ini.

This may still be unwieldy to work with, it many be that you may need to use fork() (pcntl_fork() in PHP-ese) to fork the intensive task as a child process. This allows it to run in the background and return an immediate response to the parent.

incrediBILL

6:44 pm on Jun 28, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try some of these, they might help:

ini_set('max_execution_time', 3600 );
ini_set('max_input_time', 3600 );
set_time_limit ( 3600 );