D
D
Denis99992016-01-26 12:08:58
PHP
Denis9999, 2016-01-26 12:08:58

Does the PHP parser stop working over time?

The parser works on Denver, written in PHP. It cycles through the sites from the file, takes the codes of these sites using file_get_contents, and performs certain actions. The fact is that approximately the first 200 sites are successful, and then everything goes to zero. I checked, took the failing sites after those 200 successful ones, put the failing ones at the top of the list, restarted, and everything worked as it should.
That is, the algorithm is correct, what could be the problem here?
No errors pop up, maybe it's in the memory.
Worth ini_set("max_execution_time", "0");

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2016-01-26
@VladimirAndreev

is there anything in the error log?
and in general, add the output to the screen of each sneeze of the file, then it will at least be clear what it breaks on

D
dimabdc, 2016-01-26
@dimabdc

Check the error logs if there is something like this:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 54 bytes)

then put:
ini_set('memory_limit', '-1');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question