当前位置:网站首页>Use PHP script to view the opened extensions
Use PHP script to view the opened extensions
2022-06-25 12:03:00 【lxw1844912514】
Official line phpinfo() The function is disabled , But I want to know PHP Installed those extensions , What shall I do? ?
php The expansion package will be compiled during installation , For a running database , see php Extended open status of ,
The first one is : View through the configuration file .
The second kind : stay PHP-FPM In the , We can go through phpinfo() Function to view the current PHP Status and extension related information of .
The third kind of : stay CLI In command line scripts , We can use php -m Command to view the loaded extensions .
A fourth : Use php Built in functions to view , View through script output , The code is as follows :
<?php
print_r(get_loaded_extensions());
?>adopt get_loaded_extensions The function can return php An array of extended opening conditions , Then you can print it out
By looking at the source code, you can clearly see the opening of the extension :

in addition , PHP It also provides us with functions that can view the extension status during dynamic operation .
See if the extension has been loaded
echo extension_loaded("redis");
// 1A very simple function , Its function is to check whether an extension has been loaded . It returns a Boolean value , When the extension is loaded, it returns true , If the extension is not loaded , Then return to false .

边栏推荐
- 依概率收敛
- confluence7.4.X升级实录
- 客从何处来
- How far is it from the DBF of VFP to the web salary query system?
- Uncover gaussdb (for redis): comprehensive comparison of CODIS
- ROS 笔记(06)— 话题消息的定义和使用
- Cesium draw point line surface
- JS to realize the calculation of discrete aggregation points
- 分享7个神仙壁纸网站,让新的壁纸,给自己小小的雀跃,不陷入年年日日的重复。
- Mui scroll bar recovery
猜你喜欢

Develop two modes of BS mode verification code with VFP to make your website more secure

VFP serial port communication is difficult for 9527. Maomao just showed his skill and was defeated by kiss

Data Lake survey

How terrible is it not to use error handling in VFP?

Using DBF of VFP to web salary query system

Multiple clicks of the button result in results

Whole process of web page request

Uncover gaussdb (for redis): comprehensive comparison of CODIS

confluence7.4.X升级实录

Oracle Spatial creating spatial tables
随机推荐
The latest IT learning route in 2020
Flink deeply understands the graph generation process (source code interpretation)
plt.gca()画框及打标签
flutter常用命令及问题
Is the online stock trading account opening ID card information safe?
SQL injection vulnerability (type chapter)
使用php脚本查看已开启的扩展
Explain websocket protocol in detail
图片打标签之获取图片在ImageView中的坐标
SDN系统方法 | 9. 接入网
Continue to cut the picture after the ArcGIS Server is disconnected
WebRTC Native M96 基础Base模块介绍之实用方法的封装(MD5、Base64、时间、随机数)
The cloud native data lake has passed the evaluation and certification of the ICT Institute with its storage, computing, data management and other capabilities
记一次给OpenHarmony提交代码的过程
Hook技术
redis的dict的扩容机制(rehash)
Which securities company's account is better and safer to open
设置图片的透明度从左到右渐变
为什么要分布式 id ?分布式 id 生成方案有哪些?
Comment TCP gère - t - il les exceptions lors de trois poignées de main et de quatre vagues?