Is this PHP class optimized for mysql database access?

This is a feature of the language. There's no reason to not trust it. A lot of websites are running just fine counting on PHP to close their stuff.

As programmers, of course, we want to close it ourselves. That's fine. But opening and closing a database connection for every query is a horrible idea.

The better way to do it is to call open() from your constructor, and rename your close() to destruct() . According to the documentation destruct will be called "as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown sequence." Sounds like an ideal place to stash away the closing code for your database connection.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions