Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 25
User
User
Offline
Joined: Aug 2000
Posts: 25
I am new to php but I have just noticed this in mysql.inc.php

if (!$config[persistent]) {
$this->dbh = mysql_connect($config['dbserver'],$config['dbuser'],$config['dbpass']);
}
else {
$this->dbh = mysql_pconnect($config['dbserver'],$config['dbuser'],$config['dbpass']);
}

Isn't this a major fault, I am thinking about the mysql_pconnect and mysql_connect, shouldn't it be the other way around?

I have just set them both to just mysql_connect. I haven't got that many users on the forum yet but seames to be working better so far.

Sponsored Links
Entire Thread
Subject Posted By Posted
Server Load - Help Needed Rushster 08/20/2001 9:52 PM
Re: Server Load - Help Needed sigridsholm 08/21/2001 12:12 AM
Re: Server Load - Help Needed Rushster 08/21/2001 12:23 AM
Re: Server Load - Help Needed Rick 08/21/2001 2:49 AM
Re: Server Load - Help Needed Rick 08/21/2001 2:52 AM
Re: Server Load - Help Needed Rushster 08/21/2001 3:04 AM
Re: Server Load - Help Needed Rick 08/21/2001 3:09 AM
Re: Server Load - Help Needed sigridsholm 08/21/2001 3:48 PM
Re: Server Load - Help Needed Rick 08/21/2001 4:16 PM
Re: Server Load - Help Needed sigridsholm 08/21/2001 5:27 PM
Re: Server Load - Help Needed Rushster 08/21/2001 5:49 PM
Re: Server Load - Help Needed PrplPplEater 08/21/2001 5:49 PM
Re: Server Load - Help Needed Rushster 08/21/2001 11:28 PM
Re: Server Load - Help Needed Rick 08/22/2001 3:52 AM
Re: Server Load - Help Needed Rick 08/22/2001 4:03 AM
Info you need Rushster 08/22/2001 7:31 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 28898
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 29
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)