I have a PHP Script, it needs execution time of at least 1000 seconds to complete.
It terminates after around 265 seconds each time with no errors. Since I am using loops I tested number of iterations and it is independent of that, further ruling out a possibility of occurrence of an error in the loop.
I have set max_execution_time to 10800 in php.ini, and also changing memory_limit doesn’t affect the results.
Please help! I have scratched my head thoroughly!
Did you check your log file? If you get error 6 or segmentation fault. Then your script is is actually crashing php without showing any errors on the browser (if it is browser and not cli).
If you are using apache on unix, then you should find this log in
/var/log/apache2/error.log.Otherwise you can define the path of the log file in
.htaccessby add this line:Change the path to somewhere where your httpd has write permission and where you have read permission.