獲得已載入的Apache模組列表

apache_get_modules

(PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8)

apache_get_modules獲得已載入的Apache模組列表

說明

apache_get_modules(): array

獲得已載入的Apache模組列表。

參數

此函式沒有參數。

返回值

包含已載入的Apache模組的陣列.

範例

示例 #1 apache_get_modules() 示例

<?php
print_r
(apache_get_modules());
?>

以上例程的輸出類似於:

Array
(
    [0] => core
    [1] => http_core
    [2] => mod_so
    [3] => sapi_apache2
    [4] => mod_mime
    [5] => mod_rewrite
)

Leave a Reply

Your email address will not be published. Required fields are marked *