PHP和“打开" mysqli [英] PHP and "turning on" mysqli

查看:48
本文介绍了PHP和“打开" mysqli的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在查找有关如何打开" mysqli的确切文档时遇到了麻烦.我正在运行OS X SL,据我了解,由于已安装php5,因此mysqli扩展也应该已经存在.

I'm having trouble finding documentation about how exactly to go about "turning on" mysqli. I'm running OS X SL and, as I understand it, since php5 is installed, the mysqli extension should already be there as well.

这就像在php.ini中添加LoadModule行一样简单吗?如果我需要重新编译php,有谁知道一个很好的链接,我可以按照这个链接进行操作(这样我就不会再忙了)?

Is this as simple as adding a LoadModule line to php.ini? If I need to re-compile php, does anyone know of a good link where I could follow along to do that (so I don't goof anything up)?

谢谢.

推荐答案

省去麻烦,然后安装 MAMP .使所有通常需要的PHP模块在OSX上运行并非易事.我认识的大多数人都选择其中一个软件包.

Save yourself the headache and install the entropy PHP package or MAMP. Getting all the commonly needed PHP modules working on OSX is non-trivial. Most people I know go with either one of those packages.

自从我最初发布此答案以来,发生了很多变化.如今,在OSX上最直接的方法是使用自制软件.

A lot has changed since I originally posted this answer. These days, the most straight forward thing to do on OSX is to use Homebrew.

这篇关于PHP和“打开" mysqli的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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