php增加對mysqli的支援

2021-09-06 23:32:11 字數 699 閱讀 6392

我在fedora下使用yum安裝的php和mysql,但是發現php不支援myslqi,只能編譯乙個mysqli的擴充套件給php用了。

方法如下:

2.進入擴充套件目錄,

cd /php-5.3.10/ext/mysqli

3.phpize 生成configure

4.如果在編譯php對mysqli的支援的時候出現了如下錯誤:

checking whether to enable embedded mysqli support… no

checking for mysql_set_server_option in -lmysqlclient… no

configure: error: wrong mysql library version or lib not found. check config.log for more information.

則採用下面方法解決:

# yum -y install mysql-devel

# phpize 

# ./configure --with-php-config= /php-config --enable-embedded-mysqli=shared --enable-shared

# make && make install

這時螢幕會列印mysqli.so生成的路徑, 在php.ini裡載入,重啟php-cgi就可以了

php增加mysqli擴充套件

tar zxf php 5.2.10.tar.gz cd php 5.2.10 ext m ysqli usr local php bin phpize 生成configur檔案 configure with php config usr local php bin php config with ...

PHP編譯支援mysqli

php編譯支援mysqli 前提是必須安裝mysql 直接上命令 先進入原始碼包我的原始碼包是在 usr local php 5.2.1 ext mysqli 這樣進入 cd usr local php 5.2.1 ext mysqli 然後執行 usr local php bin phpize 這...

fflua更新 增加對引用的支援

fflua 發布了有段時間了,很多都用了,並且提供了一些很好的反饋。其中乙個就是c 介面註冊到lua中時,對引用的支援。這樣使用起來更加方便。fflua 中註冊c 的類用如下方式 class base t void dump intv 註冊基類函式,ctor 為建構函式的型別 fflua regis...