WhatsPHP wrote:
Can I use mysql_pconnect on an environment like this? There is just 1
server on which both PHP and MYSQL runs. It is an intranet server. At
any point atleast 2 people will be actively using the server for their
work. If the script uses mysql_pconnect and then the normal user name
and password, will this speed up execution of scripts on the server by
any chance?
Fut
Not significantly. And it will permanently allocate resources the
entire time the server is running.
mysql_pconnect() could be advantageous when you're running hundreds of
connections a second (remember - most connections last just a few
milliseconds) and those resources can be reused immediately. But for
any single connection the time required to establish a connection is
fairly short.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================