D
D
DenBree2020-08-26 22:34:57
PHP
DenBree, 2020-08-26 22:34:57

How to increase max_execution_time?

Hello.

I got a problem with max_execution_time.

The essence of the problem is this:
There is a CSV file with links to pages that need to be parsed, then processed in the required format, and then added to the site. The file itself is loaded via AJAX. So the whole process goes as planned, only interrupted for 5 minutes.

Tried all the ways me the value of max_execution_time, but the result is still the same. The PHP documentation says that this is the default value.

Tell me, please, what could be the problem?

PS I wrote in support, so there is nothing and they can not help, they only ask for access to the project.

Current settings:
max_execution_time 3600
max_input_time -1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Daria Motorina, 2020-08-26
@DenBree

This is the wrong approach to solve such a problem, large files need to be parsed asynchronously (through queues)

N
Nadim Zakirov, 2020-08-26
@zkrvndm

Use CRON to run php, there is no execution time limit.

V
Vitaliy K, 2020-08-27
@revenger

As an option, import the CSV. * file into SQL via the command line and then take the necessary information from the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question