apache_get_modules – Retrieve List of Loaded Apache Modules (PHP)

The article explains the PHP function apache_get_modules(), which takes no arguments and returns an array of the Apache modules currently loaded, and includes a sample code snippet demonstrating its usage for developers.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
apache_get_modules – Retrieve List of Loaded Apache Modules (PHP)

The PHP function apache_get_modules() returns an array containing the names of all Apache modules that are currently loaded.

Parameters

None.

Return value

An array of strings, each representing a loaded Apache module.

Example

<?php
print_r(apache_get_modules());
?>
Array(
    [0] => core
    [1] => http_core
    [2] => mod_so
    [3] => sapi_apache2
    [4] => mod_mime
    [5] => mod_rewrite
)
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DocumentationPHPModulesfunction
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.