cvs: php-bugs-web / bug-pwd-finder.php bug.php bugstats.php fix.php lbugs.php lstats.php report.php search.php vote.php

From: Date: Sun, 21 Apr 2002 17:58:03 +0000
Subject: cvs: php-bugs-web / bug-pwd-finder.php bug.php bugstats.php fix.php lbugs.php lstats.php report.php search.php vote.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9719@lists.php.net to get a copy of this message
jimw Sun Apr 21 13:58:03 2002 EDT Modified files: /php-bugs-web bug-pwd-finder.php bug.php bugstats.php fix.php lbugs.php lstats.php report.php search.php vote.php Log: go ahead and use persistent connections Index: php-bugs-web/bug-pwd-finder.php diff -u php-bugs-web/bug-pwd-finder.php:1.1 php-bugs-web/bug-pwd-finder.php:1.2 --- php-bugs-web/bug-pwd-finder.php:1.1 Thu Sep 20 20:59:45 2001 +++ php-bugs-web/bug-pwd-finder.php Sun Apr 21 13:58:03 2002 @@ -5,7 +5,7 @@ if ($bug_id) { - mysql_connect ("localhost","nobody","") + mysql_pconnect ("localhost","nobody","") or die("Unable to connect to SQL server. Please try again later."); mysql_select_db ("php3"); Index: php-bugs-web/bug.php diff -u php-bugs-web/bug.php:1.32 php-bugs-web/bug.php:1.33 --- php-bugs-web/bug.php:1.32 Fri Apr 19 12:31:24 2002 +++ php-bugs-web/bug.php Sun Apr 21 13:58:03 2002 @@ -21,7 +21,7 @@ list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE)); } -@mysql_connect("localhost","nobody","") +@mysql_pconnect("localhost","nobody","") or die("Unable to connect to SQL server."); @mysql_select_db("php3"); Index: php-bugs-web/bugstats.php diff -u php-bugs-web/bugstats.php:1.11 php-bugs-web/bugstats.php:1.12 --- php-bugs-web/bugstats.php:1.11 Wed Jan 30 04:31:54 2002 +++ php-bugs-web/bugstats.php Sun Apr 21 13:58:03 2002 @@ -12,7 +12,7 @@ } -@mysql_connect("localhost","nobody","") +@mysql_pconnect("localhost","nobody","") or die("unable to connect to database"); @mysql_select_db("php3") or die("unable to select database"); Index: php-bugs-web/fix.php diff -u php-bugs-web/fix.php:1.4 php-bugs-web/fix.php:1.5 --- php-bugs-web/fix.php:1.4 Sat Feb 9 19:54:50 2002 +++ php-bugs-web/fix.php Sun Apr 21 13:58:03 2002 @@ -63,7 +63,7 @@ exit; } -@mysql_connect("localhost","nobody","") +@mysql_pconnect("localhost","nobody","") or die("Unable to connect to SQL server."); @mysql_select_db("php3"); Index: php-bugs-web/lbugs.php diff -u php-bugs-web/lbugs.php:1.6 php-bugs-web/lbugs.php:1.7 --- php-bugs-web/lbugs.php:1.6 Sun Mar 17 11:20:11 2002 +++ php-bugs-web/lbugs.php Sun Apr 21 13:58:03 2002 @@ -1,6 +1,6 @@ <?php /* vim: set noet ts=4 sw=4: : */ -mysql_connect("localhost","nobody","") +mysql_pconnect("localhost","nobody","") or die("Unable to connect to SQL server\n"); mysql_select_db("php3"); Index: php-bugs-web/lstats.php diff -u php-bugs-web/lstats.php:1.1 php-bugs-web/lstats.php:1.2 --- php-bugs-web/lstats.php:1.1 Thu Sep 20 20:59:45 2001 +++ php-bugs-web/lstats.php Sun Apr 21 13:58:03 2002 @@ -25,7 +25,7 @@ echo "<h3>Bug stats for PHP $phpver:</h3><pre>\n"; } -mysql_connect("localhost","nobody",""); +mysql_pconnect("localhost","nobody",""); mysql_select_db("php3"); foreach($statuses as $status) { Index: php-bugs-web/report.php diff -u php-bugs-web/report.php:1.18 php-bugs-web/report.php:1.19 --- php-bugs-web/report.php:1.18 Tue Mar 5 14:13:38 2002 +++ php-bugs-web/report.php Sun Apr 21 13:58:03 2002 @@ -13,7 +13,7 @@ $mail_bugs_to = "php-bugs@lists.php.net"; -@mysql_connect("localhost","nobody","") +@mysql_pconnect("localhost","nobody","") or die("Unable to connect to SQL server."); @mysql_select_db("php3"); Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.15 php-bugs-web/search.php:1.16 --- php-bugs-web/search.php:1.15 Wed Mar 20 14:27:56 2002 +++ php-bugs-web/search.php Sun Apr 21 13:58:03 2002 @@ -16,7 +16,7 @@ $errors = array(); if (isset($cmd) && $cmd == "display") { - @mysql_connect("localhost","nobody","") + @mysql_pconnect("localhost","nobody","") or die("Unable to connect to SQL server."); @mysql_select_db("php3"); Index: php-bugs-web/vote.php diff -u php-bugs-web/vote.php:1.4 php-bugs-web/vote.php:1.5 --- php-bugs-web/vote.php:1.4 Tue Jan 8 20:02:09 2002 +++ php-bugs-web/vote.php Sun Apr 21 13:58:03 2002 @@ -17,7 +17,7 @@ $samever = (int)$samever; $sameos = (int)$sameos; -@mysql_connect("localhost","nobody","") +@mysql_pconnect("localhost","nobody","") or die("Unable to connect to SQL server."); @mysql_select_db("php3");

« previous php.mirrors (#9719) next »