Hello guys,

I inherited a PHP application. In the db layer of the application, it has this function to connect to a mySql db.

[phpcode]
function getConn() {
return mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error());
}
[/phpcode]

This function gets called at the beginning of every db function in the dblayer class.

Beeing new to PHP, I do not know if this is handled well. There's no connection closing on PHP? or it's handled automatically by a connection pool that times out?

Thanks
HoraShadow