I am attempting to run a php script that needs to access over 4000 html pages, extract content from these pages, and save the content to my mysql database. I have been able to get the script to run for long periods of time, however after some unknown amount of time the connection between PHP and MYSQL goes strange, and Mysql keeps inserting blank rows instead of rows populated with data, even though I know that the rows I sent to mysql are populated (this is after a couple of hours running.)
Help?