|
Posted by Ondřej Flídr - Sniper's softworks on 07/13/07 10:37
_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
Navigation:
[Reply to this message]
|