Discuz_X3.2_SC_UTF8 – Eternal Night https://www.shuijingwanwq.com There is no problem not worth solving, and no technology not worth learning! Sun, 07 Jun 2026 14:14:50 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 Enable the MySQL enhanced extension in Discuz_x3.2_sc_utf8, that is, the mysqli extension https://www.shuijingwanwq.com/en/2015/11/18/16300/ https://www.shuijingwanwq.com/en/2015/11/18/16300/#respond Wed, 18 Nov 2015 08:41:09 +0000 https://www.shuijingwanwq.com/?p=16300 浏览量: 0

1. ;extension=php_mysql.dll, disable mysql extension in php.ini;

2. In the function dependency check, mysqli_connect is supported;

在函数依赖性检查中,mysqli_connect是支持的

mysqli_connect is supported in function dependency checking

3. After installation, open the blank;

安装之后,打开空白

After installation, open the blank

4. Delete the program file, copy the file to the installation directory, edit discuz_x3.2_sc_utf8/source/class/discuz/discuz_database.php, and find the function quote, modify, because it does not make the judgment of extended support:

tiveting
if (is_string($str))
return\. mysql_escape_string($str) .\;
;
*/
if (is_string($str)) {
if(function_exists(“mysqli_connect”)) {
return\. self::$db->escape_string($str) .\;
} else {
return\. mysql_escape_string($str) .\;
}
}

查找function quote,修改,因为其未做扩展支持的判断

Find Function Quote, modify it, because it does not make the judgment of extended support

5. Reinstall and install successfully

重新安装,安装成功

Reinstalled, the installation was successful

]]>
https://www.shuijingwanwq.com/en/2015/11/18/16300/feed/ 0