Installation and management of php extensions

墨辰丷
Release: 2023-03-25 20:10:02
Original
1608 people have browsed it

This article mainly introduces the installation and management of php extensions. Interested friends can refer to it. I hope it will be helpful to everyone.

1. View php extension

(a).phpinfo()

(b)bool extension_loaded ( string $name )Function

(c)get_loaded_extension() Get all php extensions


##windows

The extension_dir folder stores the php extension

php.ini View PHP extension, open or close

or write it yourself or

Install extension pecl extension

(a) Download the extension in pecl

(b) Find the extension, such as the redis category, the extension download URL for windows download dll

http://windows.php.net/ http ://pecl.php.net/

Pay attention to whether the PHP version corresponds to the extended version, as well as the apache version, linear security or non-linearity, The number of digits of the system. If one of them is wrong, the installation will fail.

Add extension in php.ini

linux

A completed path plus a PHP extension name

cd /usr/local/php

(1) Download the .so file

Place it directly under the extension, and enable the extension under php.ini

(2) are .h and .c The above needs to be compiled and installed

phpize

Compile

.configure --with-php-config=/usr/local/php/bin/php-config (Only this parameter is needed, others are not needed)

yum install autoconf

##http://www.zend.com/en /products/loader/downloads#Linux You can download the zebd_gurad_load extension and then install it

Related recommendations:

php extension development variable setting and destruction

php extension AMQP, installation error resolution

##PHP extension Comparison and introduction of related development technologies

The above is the detailed content of Installation and management of php extensions. For more information, please follow other related articles on the PHP Chinese website!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template