You are here: Re: How often do I need to connect to MySQL database? « PHP Programming Language « IT news, forums, messages
Re: How often do I need to connect to MySQL database?

Posted by zzapper on 03/13/07 21:40

On Mar 13, 8:43 pm, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> 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.
>
> yes, try pconnect as in mysql_pconnect()

Hi
thnx 4 quick replies
Yes I actually use an include for the connection.
I assume mysql_pconnect obviates the need for require_once?

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

 

Navigation:

[Reply to this 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

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