cssfreakie Posted March 21, 2011 Share Posted March 21, 2011 Hi all, I am trying to structure my php files a bit, in an orderly way, so that i have a file that makes a connection with a database, another file that processes a query, another that validates etc. Now I was thinking to make another file to close the database connection. But on the other hand it's just a small snippet, and I could just put it in my template. Does anyone have any thought on this? Although i read connections are closes automatically, I also read that it can't harm to close it manually anyway. Cheers cssfreakie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.