diff -Naur mythweb2-orig/config/conf.php mythweb2/config/conf.php --- mythweb2-orig/config/conf.php 2003-08-07 22:19:31.000000000 -0500 +++ mythweb2/config/conf.php 2003-08-07 22:15:03.000000000 -0500 @@ -28,4 +28,7 @@ define('db_dbname', 'mythconverg'); +// Whether to use persistent connections to MySQL + define('db_persistent', false); + // The domain of this webserver, for cookie validation and other things define('server_domain', $_SERVER['SERVER_NAME'] ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST']); diff -Naur mythweb2-orig/includes/init.php mythweb2/includes/init.php --- mythweb2-orig/includes/init.php 2003-08-07 22:19:31.000000000 -0500 +++ mythweb2/includes/init.php 2003-08-07 22:16:31.000000000 -0500 @@ -48,6 +48,12 @@ // Connect to the database, or restore a persistent connection // please note that calling mysql_close is unnecessary - see php documentation for details +if (db_persistent) { $dbh = mysql_pconnect(db_host, db_username, db_password) or trigger_error("Can't connect to the database server. Did you use the correct settings in config/conf.php?", FATAL); +} else { + $dbh = mysql_connect(db_host, db_username, db_password) + or trigger_error("Can't connect to the database server. Did you use the correct settings in config/conf.php?", FATAL); +} + mysql_select_db(db_dbname) or trigger_error("Can't access the database file: " . mysql_error() . " [#" . mysql_errno() . "]", FATAL);