gpt4 book ai didi

PHP fatal error : Class 'CI_DB_postgre_driver' not found in system/database/DB. php 第 144 行 - CodeIgniter

转载 作者:搜寻专家 更新时间:2023-10-30 20:55:21 25 4
gpt4 key购买 nike

我正在使用 CodeIgniter,当我尝试连接到 PostgreSQL 数据库时

$this->load->database();

它显示一个空白页。在 Apache 日志中,我看到以下错误:

PHP Fatal error: Class 'CI_DB_postgre_driver' not found in system/database/DB.php on line 144

自动加载行:$autoload['libraries'] = array('database');

这是我的 database.php:

$active_group = '默认';$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'user';
$db['default']['password'] = 'user';
$db['default']['database'] = 'database';
$db['default']['dbdriver'] = 'postgre';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

最佳答案

检查你是否没有eval()功能禁用:

var_dump(ini_get('disable_functions'));

关于PHP fatal error : Class 'CI_DB_postgre_driver' not found in system/database/DB. php 第 144 行 - CodeIgniter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23431765/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com