Error: Maximum execution time of 300 seconds in Xampp on Windows

Change Maximum Execution Time

php.ini

max_execution_time = 30

From Code

Start your code with,

ini_set('MAX_EXECUTION_TIME', 3600);

.htaccess

php_value max_execution_time 3600

No matter which option you choose, restart Apache service.