|
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
Navigation:
[Reply to this message]
|