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

Home » Imported messages » comp.lang.php » I need Help
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: I need Help [message #169696 is a reply to message #169695] Thu, 23 September 2010 07:56 Go to previous messageGo to previous message
Robert Hairgrove is currently offline  Robert Hairgrove
Messages: 19
Registered: September 2010
Karma:
Junior Member
Robert Hairgrove wrote:
> Jerry Stuckle wrote:
>> On 9/22/2010 4:46 PM, Robert Hairgrove wrote:
>>> Patrick Ehrmann wrote:
>>>> mysql_close ($verbindung);
>>>
>>> PHP takes care of this automatically, I believe.
>>>
>>
>> Never a good idea to allow PHP to close the connection. Close it
>> yourself when you're done!
>
> This is true for persistent connections. However:
>
> http://ch2.php.net/manual/en/function.mysql-close.php
>
> "(...) Using mysql_close() isn't usually necessary, as non-persistent
> open links are automatically closed at the end of the script's
> execution. See also freeing resources."

Looking at some of the user comments, it seems that PHP applications on
Windows connecting via TCP might have a problem in this regard. However,
if you are connecting to the DB on localhost, e.g. on a Linux server
hosting a website, then this shouldn't be a problem.

From reading the rest of the problems posted there by users, looks like
it is difficult to get it right -- best to let PHP take care of it
unless there is a compelling reason otherwise.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Book problems and solution for windows 7
Next Topic: Syntax for array?
Goto Forum:
  

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

Current Time: Sun Nov 24 22:28:28 GMT 2024

Total time taken to generate the page: 0.03975 seconds