14.4. Persistent ConnectionsYou can switch to persistent connections in MySQL by changing the function call from mysql_connect( ) to mysql_pconnect( ). They both take the same parameters, with the difference being that mysql_connect( ) will always open a new connection, whereas mysql_pconnect( ) will open a new connection only if there is not one already available. Otherwise, it will just use the existing connection. Similarly, the SQLite function sqlite_open( ) has a persistent counterpart, sqlite_popen( ).
|