2006 MySQL server has gone away
this happens randomly and after much research I have come to the conlusion that my host server wait timeout setting was to blame and/or server load. Since I am unable to change this server setting I tried this solution:
Code: Select all
tep_db_close ();
tep_db_connect() or die('Unable to connect to database server!'); Can anyone offer any suggestions other then switching hosting companies? I was hoping there was something I could do with code to eliminate this issue.
Thanks.
It might have something to do with curl_exec.