CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 unset vs. close

Print topic Send  topic

Author Message
bguthrie


Posts: 31
Posted: 03/24/2004, 7:14 AM

I've noticed in CodeCharge Help that "unset($db)" and "connection->close" are used in sample code to close database connections and release resources. Which is the best method for closing connections?

Thank you for your insights.
_________________
Regards,

Bruce
View profile  Send private message
peterr


Posts: 5971
Posted: 03/25/2004, 10:38 AM

I checked and looks like using close should be better, even though theoretically PHP should free all resources at the end of script's execution.
We'll modify the docs as well. Thanks for pointing this out.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
bguthrie


Posts: 31
Posted: 03/25/2004, 11:51 AM

Thank you Peter, I appreciate the help.
_________________
Regards,

Bruce
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.