FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » must I close mysql_connect?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: must I close mysql_connect? [message #179739 is a reply to message #179736] Sat, 01 December 2012 07:43 Go to previous messageGo to previous message
cngrit0305 is currently offline  cngrit0305
Messages: 4
Registered: November 2012
Karma:
Junior Member
在 2012年11月30日星期五UTC+1下午3时34分15秒,Jerry Stuckle写道:
> On 11/30/2012 9:15 AM, cngrit wrote: > In my script,I use mysql_connect to get a connection with mysql,now I want to know,after I used it ,I must to close it, or ignore it? > > if this connection will be used many times,i need to close it after the last time, or nothing to do? > > usually,which function you will use,mysql_connect or mysql_pconnect? > It's always good programming practice to clean up after yourself. This means closing connections when you're done with them. As for connecting - do you need a persistent connection? If so, why? If you can't provide good answers to those questions, you shouldn't be using mysql_pconnect(). -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex(at)attglobal(dot)net ==================

en,thank you very much,now,i know how to do.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Windows] php-cgi.exe can't find extension
Next Topic: when receiving the mail(php mail function), the variable's last value is getting converted to $ or # replacing the digit
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 15:40:10 GMT 2024

Total time taken to generate the page: 0.05029 seconds