codeigniter:消息:模块"mysqli"已加载 [英] codeigniter: Message: Module 'mysqli' already loaded
问题描述
我正在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屋!