I need to run a PHP script for a while - how Does PHP Maximum Execution Time Work?
Posted on 2014-07-31
I have a PHP script that I am testing that works as it should and completes in a little under 3 minutes with a certain size data input test file.
When I move to production, the data input file could potentially be 15 times this large (making execution almost 45 minutes for a million records.)
What do I need to consider? I'm not sure why the script is not being interrupted now - in Webmin > PHP Configuration > Resource Limits, my Maximum Execution Time is set to 30 seconds, and the Maximum Input Parsing Time is set at 60 seconds.
Am I considering all PHP Config options involved here?
What should I increase these options to?
What pro's/con's do I need to consider if I do increase these parameters?