<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.3 $ -->
  <refentry id="function.apache-get-modules">
   <refnamediv>
    <refname>apache_get_modules</refname>
    <refpurpose>
     Get a list of loaded Apache modules
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>array</type><methodname>apache_get_modules</methodname>
     <void/>
    </methodsynopsis>
    <para>
     This function returns an array with the loaded Apache modules.
    </para>
    <para>
     <example>
      <title><function>apache_get_modules</function> example</title>
      <programlisting role="php">
<![CDATA[
<?php
print_r(apache_get_modules());
?>
]]>
      </programlisting>
      <para>
       The above example will output something similar to:
      </para>
      <screen>
<![CDATA[
Array
(
    [0] => core
    [1] => http_core
    [2] => mod_so
    [3] => sapi_apache2
    [4] => mod_mime
    [5] => mod_rewrite
)
]]>
      </screen>
     </example>
    </para>
    <note>
     <para>
      This function is available only in Apache 2 <emphasis>handler</emphasis>.
      As of PHP 5, it is available also in Apache 2 <emphasis>filter</emphasis>
      and Apache 1.
     </para>
    </note>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->