It's possible to connect to a DB but... closing a connection?

#5
[eluser]punchi[/eluser]
If you'r using pconnect, you should close the connection. For a no-pconnect, it's necessary for big querys, because anyway at the end of the script PHP will close connections.

And, is better to have a connection "null" than closing it, at least that appear in discussions in PHP (both ways finish the connection, but closing it can close a TCP layer, giving problems)

So, i'll try the
Code:
$this->db = null;
idea, maybe that line give me an error, but well, I'll try something like that.

Thanks skunkbad! always helping (at least) to me =)


Messages In This Thread
It's possible to connect to a DB but... closing a connection? - by El Forum - 12-21-2009, 10:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.