Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 CodeIgniter 应用程序(全新安装)中,以下代码行导致页面显示“服务器错误”
控制器:
public function index() { $m = new Mongo(); echo 'Success'; }
如果我注释掉该new Mongo()行,一切正常。我已确保 Mongo 进程正在服务器上运行。
new Mongo()
我什至尝试将它包装在 中try/catch,但我仍然收到服务器错误。
try/catch
我究竟做错了什么?