Dear Customer,
This is a commonly misunderstood issue. The error you are seeing is caused by a number of things relating to the settings or configuration of your script. The most common reason that you will see this error, on our servers, is that your connection to the MySQL database is timing out and being disconnected while the script that is calling it is working on other things, like FTP uploads and the like. There is a 45 second limit on idle connections to the MySQL database. An idle connection is one in which no data is being accessed or written.
Related to this, but not quite the same, is that persistent MySQL connections will not work on our server. It is pretty much guaranteed that a continuous connection to the MySQL database will lie idle for more than 45 seconds at some point. When this happens the connection is closed, and the script only realizes this when it tries to use the connection the next time. This is the easier of the two issues, as you would simply turn off the setting for persistent connections in your script.
Sincerely, Craig Coxson - Level I Support - BlueHost.com
So...not knowing how this code works...is there something I can change to make it work on their servers?
Is the script doing other things or is the call that processes display_custom_bbcodes() running linier?while the script that is calling it is working on other things
Or is this level I tech just sending me a "canned response"?