Home > Backend Development > PHP Tutorial > 替php增加mbstring扩展 等一般扩展

替php增加mbstring扩展 等一般扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:29:56
Original
1000 people have browsed it

为php增加mbstring扩展 等一般扩展
注: 默认生成 extension.so的目录是
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/
设定extension_dir的目录指向它


环境php5.2.14, 编译后不支持mbstring扩展。
假如php的源码包在/usr/local/src/php-5.2.14
php安装目录是/usr/local/php
# cd /usr/local/src/php-5.2.14/ext/mbstring/
# /usr/local/php/bin/phpize
# ./configure –with-php-config=/usr/local/php/bin/php-config
# make
# make install
执行完毕后在php.ini里增加extension=mbstring.so
重启web服务器, 看一下phpinfo, 应该支持mbstring了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template