codeigniter:消息:模块"mysqli"已加载 [英] codeigniter: Message: Module 'mysqli' already loaded

查看:72
本文介绍了codeigniter:消息:模块"mysqli"已加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在codeigniter中建立一个新项目,并将所有文件上传到实时服务器后,在加载网站时出现此错误:

I'm setting up a new project in codeigniter and after uploading all files to the live server, I got this error upon loading the website:

A PHP Error was encountered

Severity: Core Warning

Message: Module 'mysqli' already loaded

Filename: Unknown

Line Number: 0

Backtrace:

它的行号为0,我不在错误的地方.我在本地主机没有收到此错误.谁能告诉我如何解决这个问题?

It's given line number 0 and I don't where I made the mistake. I'm not getting this error in localhost. Can anyone tell me how to fix this?

推荐答案

您正试图第二次加载php模块.它可能已经设置为加载到php.ini文件中,并且您尝试在项目内部的某个位置再次动态加载. 您可以在php.ini中注释该行并重新启动Apache,或者查找并删除可能类似于

You're trying to load the php module the second time. It's probably already set to load in php.ini file, and you try to load again dynamically somewhere inside your project. You could either comment that line inside php.ini and restart Apache, or find and delete the line that could be something like

dl('php_mysqli.dll'); // on Windows 

dl('mysqli.so'); // on Linux

,. php文件中的某个位置.

,somewhere inside a .php file.

更好的是,在尝试加载之前进行测试:

Better yet, test before attempting to load:

if (!extension_loaded('mysqli')) {
    dl('php_mysqli.dll');
}

这篇关于codeigniter:消息:模块"mysqli"已加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆