xxxxxxxxxx
//php.ini settings file
max_execution_time = 500
xxxxxxxxxx
// Set the maximum execution time to 300 seconds (5 minutes)
ini_set('max_execution_time', 300);
// Your code goes here
// ...
// If your code takes sufficient time or you want to reset the default maximum execution time (120 seconds in this case), use the following code:
ini_set('max_execution_time', 120);
xxxxxxxxxx
// you need to add this line at the bottom of your .htaccess file
Before # END WordPress Like this...
php_value max_execution_time 1000
# END WordPress