I have a script in php which takes data from a database and writes it in a file. The first time I ran the script I got this:
Fatal error: Maximum execution time of 240 seconds exceeded.
So I changed this time in my php.ini to 300 and ran the script again. This time, it works. However, on running the script a second time I get this error:
Fatal error: Maximum execution time of 300 seconds exceeded.
After changing the time to 300 now, it works again but only the first time. Any idea as to why I have to keep on increasing this max_execution_time?