Fatal error: maximum run time exceeded 400 seconds

I have a PHP script that fails while executing a long mysq_query. Error message:

Fatal error: maximum run time 400 seconds exceeded ....

I use XAMPP for windows, and I changed the php.ini file (there is only one in my installation), setting max_execution_time to a large value that is not 400 seconds. However, I keep getting the error message above ....

Any idea on how to solve this problem?

thank

Beto

+3
source share
3 answers

, - php.ini. - script set_time_limit

set_time_limit(600);

0, - .

400 - - db?

+3

- PHP, .

0

- .htaccess PHP , , 400 .

Having said that, 400 seconds is still too long for the request. You should consider setting the task to another process if it really needs to be done for so long.

0
source

Source: https://habr.com/ru/post/1729891/


All Articles