Well, I'm relatively new to php but have worked on web apps previously. I'm currently writing code in php and running Apache httpd. The DB I'm using is PostgreSql.
This web app will connect to DB very frequently. For that reason I'm looking for something that enables me not to initiate connection every time a user accessed a page.
Is it possible in php to set a variable that is same for all users.
For eg. I want to save a DB connection object in a variable and use it whenever I want.
That variable will go out of scope when Apache Server stops.