PERMANENT db-connection

admin

Administrator
Staff member
I've written my own class with a database abstraction layer. Everytime I need a database connection (in a new php file) I have to make an Instance of this class which means I have to reconnect to the database everytime, too.

Is it possible to instatiate this class once and pass it through several php objects (files) ? Or is there another way to get a permanent database connection ?

thx in advance
 
Back
Top