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

问题描述:

我已经试过了

<?php

print_r(apache_get_modules());

?>

得到这个

Fatal error:  Call to undefined function apache_get_modules() in

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

Why the error for built in function and how to get list of modules

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

The manual page contains details about the PHP and Apache version that support apache_get_modules().

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

You must be running PHP >= 4.3.2 and using Apache 2 handler API, or PHP >= 5.0 and Apache 1 or Apache 2 filter API.