I'm running a server at my office to process some files and report the results to a remote MySQL server.
The files processing takes some time and the process dies halfway through with the following error:
2006, MySQL server has gone away
It may be easier to check if the connection and re-establish it if needed.
See PHP:mysqli_ping for info on that.