如何获得使用PHP启用的Apache模块列表 [英] How to get the list of apache modules enabled with php

查看:121
本文介绍了如何获得使用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

推荐答案

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

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.

这篇关于如何获得使用PHP启用的Apache模块列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆