Welcome Guest, Not a member yet? Register   Sign In
$db['default']['pconnect'] = TRUE;
#4

[eluser]nirbhab[/eluser]
First, when connecting, it would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.

Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (mysql_close() will not close links established by mysql_pconnect()).

This type of link is therefore called 'persistent'.
so, pconnect is good to use, save resources to a huge extend.


Messages In This Thread
$db['default']['pconnect'] = TRUE; - by El Forum - 03-12-2008, 08:06 PM
$db['default']['pconnect'] = TRUE; - by El Forum - 03-13-2008, 03:11 AM
$db['default']['pconnect'] = TRUE; - by El Forum - 05-18-2008, 05:56 AM
$db['default']['pconnect'] = TRUE; - by El Forum - 05-18-2008, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB