Get the App
SLTechnology News&Howtos  ›  Development  › 

How win php installs extensions

Shulou Source: shulou.com Published: 2022-06-02 01:40:55 10月05日 Update

This article will explain in detail how to install the extension on win php. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Win php installation method: 1, download the desired extension on the official website; 2, extract and put the php_redis.dll in the ext directory; 3, put the php_redis.dll in the folder specified in php.ini, and load the redis module.

This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer

How does win php install extensions?

PHP installation extension in windows environment

PHP installation extension

1. Php extension management

1. What is a php extension

Php extension is a function that the php core does not support, and then you can extend the function of PHP by extension, such as MySQL,gb2 and so on.

two。 Check which extensions are installed by php

Method 1: check it through the phpinfo () function. The red boxes are all extensions of php.

Method 2: execute the php-m command:

[root@linux-host] # php-m

Method 3: use the get_loaded_extensions () function of php

The output of the above routine is similar to:

Array ([0] = > xml [1] = > wddx [2] = > standard [3] = > session [4] = > posix [5] = > pgsql [6] = > pcre [7] = > gd [8] = > ftp [9] = > db [10] = > calendar [11] = > bcmath)

Method 4: the extension_loaded function checks whether an extension has been loaded, and returns TRUE if the extension specified by name is loaded, otherwise it returns FALSE.

Tags: File version configuration information directory function address method important time page support output security success parameter performance folder module environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Microsoft Redmi Linux