It can be set on the server or written to the current file.
Found Php. ini in the PHP installation directory on the server.
Find the statement max_execution_time and change the value to the time you want, or 0 means there is no time limit.
If you write code in the current file
Then write this php code at the top of the page.
set _ time _ limit(0);
The parameters in brackets are numbers. Write down the time you want, for example, 100 is 100 seconds.
0 means there is no time limit.