For Temporarily Increasing Your Max Execution Time You Can Use ini_set() in your PHP Page
ini_set('max_execution_time', 300); //300 seconds = 5 minutes otherwise, you will need to do it in php.ini max_execution_time = 30 Change the value (in seconds) or set to 0 for infinite time and restart Apache for the setting to take effect.