|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hallo,
I have to do a lot of connection to Mysql. I don't want to open and close connection every time: there is a way do do that? I read about permanent connection... how it works? how can I do? Thank you in advance, Rino. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
_mario.lat napsal(a):
> Hallo, > I have to do a lot of connection to Mysql. > I don't want to open and close connection every time: > there is a way do do that? > I read about permanent connection... how it works? > how can I do? > Thank you in advance, > Rino. Permanent connections to MySQL are established by php function mysql_pconnect(). You have to call this function only once at the beginning of your script. After that, you can use mysql_query() without any new connections. When you will use mysql_pconnect more then once, second calling will check if there is some another permanent connection to database. If it find one, this will be used and no new connection will be established. More information you can find at http://www.php.net. Regards OF -- S pozdravem OndÅ™ej FlÃdr - Sniper's softworks +420 776 167 963 ICQ: 248 888 883 Skype: snipers-softworks flidr@snipers-softworks.net http://www.snipers-softworks.net |
|
![]() |
| Outils de la discussion | |
|
|