I am new to open source (and PHP in particular) and have a question, maybe someone could offer an answer.
I want to connect to a DB but I want to use one external file that will have the DB settings and connect to server and DB.
When doing it in the PHP file, it's easy, I setup everything, call the: mysql_connect() method and then call the: mysql_select_db() method, do what ever I need to do and close the connection.
What I am asking is how do I close the connection if I put all the settings and the connect and select_db methods in an external helper file and just want to include it?
I really couldn't find anything about this, it looks like the connection is persistent and I don't want it to stay open for every user that connect to the DB.
What am I missing here?