Closing MySQL Connection

Hi guys/gals, just a quick, I never close my database connectios, I don’t know if I should or not as I believe the connection will be closed when the script finishes anyway. Just wondered if it’s considered good practice to close the connection anyhow? Any advice is appreciated :slight_smile:

Connections to a MySQL server are normally closed automatically when the execution of a script ends. Persistent Database connections will stay open until you close them.

There is a page in the PHP Manual which goes over the details of persistent connections and lists the “gotchas” which can catch you out.