如何获取使用php启用的apache模块列表

Dar*_*ric 3 php apache

我试过这个

<?php

print_r(apache_get_modules());

?>
Run Code Online (Sandbox Code Playgroud)

得到了这个

Fatal error:  Call to undefined function apache_get_modules() in
Run Code Online (Sandbox Code Playgroud)

为什么内置函数的错误以及如何获取模块列表

Geo*_*ins 5

手册包含了PHP和Apache的版本支持的详细信息apache_get_modules().

您必须运行PHP> = 4.3.2并使用Apache 2处理程序API,或PHP> = 5.0和Apache 1或Apache 2过滤器API.