php-general | 2001032
Date: 03/24/01
- Next message: Greg Scott: "Re: [PHP] Delaying Printed Output"
- Previous message: Pierre-Yves Lemaire: "Re: [PHP] random letters and numbers"
- In reply to: andrie: "[PHP] connection id"
- Next in thread: Jonathan Sharp: "RE: [PHP] connection id"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>>
Para: <php-general <email protected>>
Cc: <php-db <email protected>>
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 <email protected>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Greg Scott: "Re: [PHP] Delaying Printed Output"
- Previous message: Pierre-Yves Lemaire: "Re: [PHP] random letters and numbers"
- In reply to: andrie: "[PHP] connection id"
- Next in thread: Jonathan Sharp: "RE: [PHP] connection id"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

