致命错误:未捕获错误:调用未定义的函数mysql_pconnect()(Fatal error: Uncaught Error: Call to undefined function mysql_pconnect())
function db_pconnect() { if ($this->port != '') { $this->hostname .= ':'.$this->port; } return @mysql_pconnect($this->hostname, $this->username, $this->password); }致命错误:未捕获错误:调用D:\ xampp \ htdocs \ IKM \ system \ database \ drivers \ mysql \ mysql_driver.php中的未定义函数mysql_pconnect():91
function db_pconnect() { if ($this->port != '') { $this->hostname .= ':'.$this->port; } return @mysql_pconnect($this->hostname, $this->username, $this->password); }Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in D:\xampp\htdocs\IKM\system\database\drivers\mysql\mysql_driver.php:91
最满意答案
此功能已从PHP 7.0中删除,并已在PHP 5.5中弃用。 很可能你正在使用PHP 7.0。
要解决此问题,您需要使用mysqli扩展名或PDO扩展名。
This function has been removed as of PHP 7.0 and deprecated in PHP 5.5. Chances are you're using PHP 7.0.
To fix this, you need to use either the mysqli extension, or the PDO extension.
更多推荐
发布评论