[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers] Enabled persistant MySQL connections in /include/data
From: |
Elfyn McBratney |
Subject: |
[Savannah-hackers] Enabled persistant MySQL connections in /include/database.php |
Date: |
Sat, 17 Apr 2004 13:24:57 +0000 |
User-agent: |
KMail/1.6.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I just noticed that db_connect() in /savannah/www/include/database.php is
using mysql_connect() to connect to the database (meaning a new connection is
made on every request), so I changed that to mysql_pconnect() (which enables
persistant MySQl connections connections).
For more info, see:
<http://www.php.net/mysql_pconnect>
Elfyn
- --
Elfyn McBratney, EMCB
mailto:address@hidden
http://www.emcb.co.uk/
PGP Key ID: 0x456548B4
PGP Key Fingerprint:
29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
Error: quote_machine(): Dry humour detected.
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAgTApaIgMKkVlSLQRAlJIAKCX6b+bbN8LKn9ee3L3BSEClx1gVACfVRQJ
25EO4WcIHWGEWWcd29lZ2FY=
=rt2o
-----END PGP SIGNATURE-----
- [Savannah-hackers] Enabled persistant MySQL connections in /include/database.php,
Elfyn McBratney <=