Reply to Re: How often do I need to connect to MySQL database?

Your name:

Reply:


Posted by zzapper on 03/14/07 16:30

On Mar 14, 3:38 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> zzapperwrote:
> > Hi,
> > At present at the top of each of my php pages I reconnect to my
> > database
>
> > mysql_connect(...);
>
> > is that actually necessary/good practice. Isn't there something about
> > persistent connections.
>
> > --
> >zzapper
> > Best of VimTips
> >http://www.vim.org/tips/tip.php?tip_id=305
>
> You do NOT want to use mysql_pconnect(). This does create persistent

Hi
So is it normal to connect to the db once per page, the reason I ask
this is that I'm getting "you gave exceeded the maximum number of
connections per hour (400)" from my webserver, but I'm currently to
only one accessing it!
Does "require once" only prevent me from connecting more than once per
page?

--
zzapper
Best of VimTips
http://www.vim.org/tips/tip.php?tip_id=305

[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

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