Reply to Re: mysql : how permanent connection.

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация