Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How win php installs extensions

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report