Ok, so I am helping someone with their site. Their original coder thought it would be a great idea to put their entire database in an array.
I am looping through each piece of data in the array and inserting it into a new mysql table I created, the rows are getting inserted just fine but the problem is that php wont let my script execute for more than 60 seconds.
How can I override this setting?
There’s the classic solution, using set_time_limit(), which allows you to set the maximum execution time (in seconds) for a script.
Still, you might want to either insert multiple rows with one query or convert the array into CSV and use LOAD DATA which is much faster.
Edit: examples
Inserting multiple rows:
Ref: http://dev.mysql.com/doc/refman/5.1/en/insert.html
Using LOAD DATA:
Ref: http://dev.mysql.com/doc/refman/5.1/en/load-data.html