Addendum, as it is already a kind of habit for me:
For this script, the "maxexecutiontime" should be increased many times depending on the data volume of the lines etc in the php settings.
In my Plesk servers, the default number is 30. To be on the safe side, I always entered 90,000 in advance, if it took a few minutes longer.