When is it the best time to close a database connect? Is it good to close it on every scripting page i do that uses it?
programmer12
0
Junior Poster in Training
Recommended Answers
Jump to PostWhen a PHP script is done executing all non-persistent connections will be closed.
Non-persistent connections are made with the _connect database functions so as long as you stick to that, there's nothing to worry about.
Jump to PostTo read more about fatal error:"OUT OF MEMORY" ,Clickhere
All 7 Replies
Insensus
52
Junior Poster
programmer12
0
Junior Poster in Training
IIM
163
Master Poster
vibhaJ
126
Master Poster
programmer12
0
Junior Poster in Training
Stefano Mtangoo
455
Senior Poster
programmer12
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.