Hello!
At least in include/inc_lib/default.inc.php you use pconnect to connect to database. This is problem with couple big webhotell organisation in Finland.
Do you have any patch to change phpWCMS to use connect instead of pconnect? Or could you tell is default.inc.php only place where you connect to SQL?
If there is no reasons to use persistent connections, I think it would be better to use standard database connections.
http://fi2.php.net/manual/fi/function.m ... onnect.php
http://fi2.php.net/manual/fi/function.mysql-connect.php
Thanks, Jakob
Problem with persistent SQL connections
This is asked as a question during setup (whether to use "persistent" connections or not)... but you should be able to modify "config.inc.php" line:
FROM:
FROM:
TO:// database values
$phpwcms["db_pers"] = 1;
This will trigger the code in "default.inc.php":// database values
$phpwcms["db_pers"] = 0;
// open the connection to MySQL database
if($phpwcms["db_pers"] == 1) {
$db = mysql_pconnect($phpwcms["db_host"],$phpwcms["db_user"],$phpwcms["db_pass"]) or die("Error while trying to connect to ".$phpwcms["db_host"]);
} else {
$db = mysql_connect($phpwcms["db_host"],$phpwcms["db_user"],$phpwcms["db_pass"]) or die("Error while trying to connect to ".$phpwcms["db_host"]);