I have a script that runs through a text file and spits out certain things within the text file, removes duplicates etc. The script used to work fine, but each couple days this .txt file increases as it is a server log. At the moment it is 100mb, and when the script on it locally on wamp server it times out with a 30 second timeout. I then went into PHP.ini and changed this 30 second time out to something like 500 but it still times out and says 30 second time out. Is there any way around this?
Or put set_time_limit(0); in your code. I prefer this so I don't have to change settings back and forth when doing such processes.
Not everyone has access to php.ini, specially in shared host environment. This is what I use on top of my php page for running larger scripts. I hope it helps. <? ini_set("max_execution_time",3000); ini_set('memory_limit','100M'); ?>