如何解决“致命错误:找不到类'MySQLi'"? [英] How to solve "Fatal error: Class 'MySQLi' not found"?
本文介绍了如何解决“致命错误:找不到类'MySQLi'"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在做一个教程,并遇到此错误:
I am doing a tutorial and am getting this error:
严重错误:在第8行上找不到类"MySQLi"(LONG URL)
Fatal error: Class 'MySQLi' not found (LONG URL) on line 8
第8行的代码是:
$mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_name);
我在网上看到有人说要在我的phpinfo()中打开它,但是下面没有列出"mysqli"的任何内容.
I saw online someone said to see if it was turned on in my phpinfo(), but there wasn't anything listed in there under for "mysqli".
此外,我正在运行PHP版本5.2.5
Also, I am running PHP version 5.2.5
推荐答案
听起来像您只需要如果您认为自己已完成此操作,但仍然遇到问题,请发布您的操作系统以及可能有助于进一步诊断的其他任何信息.
If you think you've done that and still have a problem, please post your operating system and anything else that might help diagnose it further.
这篇关于如何解决“致命错误:找不到类'MySQLi'"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文