Posted by Erwin Moller on 03/13/07 20:43
zzapper wrote:
> 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()
But I wouldn't expect that will seriously speed up your scripts.
If you want to investigate: www.php.net and type mysql_pconnect into the
searchbox.
Regards,
Erwin Moller
>
> --
> zzapper
> Best of VimTips
> http://www.vim.org/tips/tip.php?tip_id=305
Navigation:
[Reply to this message]
|