Why WordPress after some time of execution of PHP script gives 404?

Uploaded to the website root php script. Parser. Gets wp-config and using wpdb works with the base. Well, the whole execution of the script takes 2-3 minutes. But at half it gives 404 and of the 25 sites, only 16 are parsed. Why is this coming out?
And is it possible to wpdb without connecting to the WordPress?
March 23rd 20 at 18:44
1 answer
March 23rd 20 at 18:46
Solution
It's not a WP problem. This is a limitation or a web server or run-time script (Google set_time_limit). Run the parser via cron directly, without a web server and increased the script execution time.

Find more questions by tags PHP