Codeigniter error: 调用未定义的函数 mysql_pconnect()
2022-08-30 13:44:54
我已将我的代码标志版本从2.2.4逐步更新到3.0.6,但我收到一个错误:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function mysql_pconnect()
Filename: path-to-project\system\database\drivers\mysql\mysql_driver.php
Line Number: 135
Backtrace:
File: path-to-project\application\controllers\Main.php
Line: 10
Function: __construct
File: path-to-project\index.php
Line: 315
Function: require_once
我刚刚用新的索引.php文件和系统目录替换了我的索引,并根据教程在我的应用程序中进行了一些更改。
这是主控制器:
class Main extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->model('main_model');
}
}
问题的原因是什么?!