I have a PHP script and this script loops thousands of lines. When I run the PHP file manually, this loop of thousands of lines returns successfully. But when a cron job does this, it turns around 143 times.
What have I checked:
- I checked if there was something to stop my code for the 143rd time.
- I checked if this is a timeout. Even if I extend the time, it stops after the 143rd turn.
What have I tried?:
- I thought it might be a memory issue. and I increased the memory_limit. - Not working
Edit: Even though I didn't make any changes, the situation improved. I need to know the reason for this. Please give your estimates and the measures I can take.