Commit 3ab5709a authored by Dries's avatar Dries

- Changed pconnect() to connect().

parent 62f5ae01
......@@ -9,10 +9,16 @@ function db_connect($url) {
$url["host"] = $url["host"] . ":" . $url["port"];
}
mysql_pconnect($url["host"], $url["user"], $url["pass"]) or die(mysql_error());
mysql_connect($url["host"], $url["user"], $url["pass"]) or die(mysql_error());
mysql_select_db(substr($url["path"], 1)) or die("unable to select database");
// NOTE: we are using a persistent connection!
/*
** Note that you can change the 'mysql_connect' statement to 'mysql_pconnect'
** if you want to use persistent connections. This is not recommended on
** shared hosts, might require additional database/webserver tuning but
** increases performance when the overhead to connect to your database is
** high (eg. your database and webserver live on different machines).
*/
}
function db_query($query) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment