Home Website Tutorials List the extension used on your website

List the extension used on your website

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

Introduction

In some cases, you need to quickly check if an extension has been enabled on your website, usually you will create an info.php file with the structure below to check. Creating an info file with this content we can check the Extensions, but it displays too much information, confusing us.

<?php

phpinfo();

?>
List the extension used on your website

AZDIGI will show you another simpler way but still see the full range of extensions enabled on the website, follow the instructions below:

Implementation Guide

Step 1: Create a file

To create Info file, you first need to access the Host/VPS containing the website to be configured, you access the Document root of the website and create any *.php file (ex: info.php or check.php…)

For example, I do a demo with website thegioibecon.com and access the root directory of the website and create a file named info.php as shown:

List the extension used on your website

After creating, you continue to step 2.

Step 2: Add the code to that file

After creating File Info, right-click on that File => select Edit and add the code below:

<?php
echo 'Current PHP version: ' . phpversion(). '<br/>';
foreach (get_loaded_extensions() as $i => $ext)
{
   echo $ext .'<br/>';
}
?>

The structure will be as shown below:

List the extension used on your website

Step 3: Check the result

Please open a browser and access with the syntax: https://name_website.com/name_file.php to check.

Here are my results:

CleanShot 2022 04 14 at 03.48.30

Above are details on creating a file to check extension information an extremely simple and fast. This way, you can quickly check the extension you need without displaying other unnecessary information. Hope this article is helpful to you!

You can refer to other instructions at the link below:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign