1
SuperVoley
pconnect to connect
  • 2005/2/16 1:05

  • SuperVoley

  • Just popping in

  • Posts: 67

  • Since: 2004/11/2


My host requireds me to change mysql_pconnect to mysql_connect.

How can I do that?


2
ackbarr
Re: pconnect to connect

in XOOPS_ROOT_PATH/mainfile.php:

// Use persistent connection? (Yes=1 No=0)
// Default is 'Yes'. Choose 'Yes' if you are unsure.
define('XOOPS_DB_PCONNECT'1);


Change the 1 to a 0

3
SuperVoley
Re: pconnect to connect
  • 2005/2/16 1:34

  • SuperVoley

  • Just popping in

  • Posts: 67

  • Since: 2004/11/2


Thanks ackbarr, but I checked my code and I found this:
// Use persistent connection? (Yes=1 No=0)
    // Default is 'Yes'. Choose 'Yes' if you are unsure.
    
define('XOOPS_DB_PCONNECT'0);


I use XOOPS 2.0.9.2 with Protector 2.33 (this can make troubles?).


4
ackbarr
Re: pconnect to connect

then XOOPS itself is not using mysql_pconnect. However if you have any 3rd party "modules" (usually ports of standalone applications) that utilize their own database connection routines then they may need to be set to not use pconnect.

Login

Who's Online

267 user(s) are online (187 user(s) are browsing Support Forums)


Members: 0


Guests: 267


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits