Forum Moderators: coopster
Incedentally php will not necessarily close connections (dependant upon persistant flag it will leave them open for future runs or until they timeout)
I've never used persistent connections myself, but you could check your script at the beginning to see if it's using mysql_connect or mysql_pconnect - the latter which doesn't close connections. The manual notes that using mysql_pconnect can require some special tuning of apache and mysql - for the reason that you can get too many concurrent connections - probably for this reason most scripts on shared hosting don't use it.
Mirror mysql database on a second machine
Change machine reference in mysql_connect
Run netstat on the second machine
72,000 is huge - dont know a great deal about the setup of shared hosts but the default mysql variable for concurrent connections is something like ~100 (64 mabye). Additionally - assuming 1 connection per pageview (I cannot think of an application that would require more than this), I am sure it represents a good amount of time as well. Even if the connections are set up persistantly you should not see this - I would double check that you close the connection and add perhaps an "or die('could not close the connection');" or similar to the end of mysql_close statement.
[edit]
tell me if I'm opening connections and not closing them (depending on the name of the connection each time I open one)