Re: connection id

From: Date: Sat, 24 Mar 2001 17:50:30 +0000
Subject: Re: connection id
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-45434@lists.php.net to get a copy of this message
Use persistent connections it's a matter of performance of your script. When you use persistent connections the next call to mysql_pconnect will catch a opened connection if available. The mysql_connect command always open a new connection which slower than get an opened one. Anyway you can't use the connection_id in other page. May be using PHP4 Sessions. HTH. Jayme. -----Mensagem Original----- De: andrie <andrie@ajk.its-sby.edu> Para: <php-general@lists.php.net> Cc: <php-db@lists.php.net> Enviada em: sexta-feira, 23 de março de 2001 20:38 Assunto: [PHP-DB] connection id > Hello php mania, > i was connecting into mysql using mysql_connect, and i just saved > the return value from this funtion. now i want to use this connection > id in the other page so i dont have to connect into mysql again. > is it possible for me to do that ? > anybody could tell me the different between persistence connection > or not ? and how the implementation ? > > TIA > > > -- > Best regards, > andrie mailto:andrie@ajk.its-sby.edu > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#45434) next »