File: ini-get-all.xml

package info (click to toggle)
phpdoc 20050512-1
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 36,592 kB
  • ctags: 1,501
  • sloc: xml: 376,768; php: 6,708; cpp: 500; makefile: 293; perl: 161; sh: 151; awk: 28
file content (105 lines) | stat: -rw-r--r-- 2,818 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.23 -->
  <refentry id="function.ini-get-all">
   <refnamediv>
    <refname>ini_get_all</refname>
    <refpurpose>Gets all configuration options</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>ini_get_all</methodname>
      <methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns all the registered configuration options as an
     associative array.  If the optional <parameter>extension</parameter>
     parameter is set, returns only options specific for that
     extension.
    </para>
    <para>
     The returned array uses the directive name as the array key, with
     elements of that array being <literal>global_value</literal> (set in
     &php.ini;), <literal>local_value</literal> (perhaps set with
     <function>ini_set</function> or &htaccess;), and
     <literal>access</literal> (the access level).  See the manual section
     on <link linkend="configuration.changes">configuration changes</link>
     for information on what access levels mean.
    </para>
    <note>
     <para>
      It's possible for a directive to have multiple access levels, which is
      why <literal>access</literal> shows the appropriate bitmask values.
     </para>
    </note>
    <para>
     <example>
      <title>A <function>ini_get_all</function> example</title>
      <programlisting role="php">
<![CDATA[
<?php
$inis = ini_get_all();

print_r($inis);

?>
]]>
      </programlisting>
      <para>
       Partial output may look like:
      </para>
      <screen>
<![CDATA[
Array
(
    [allow_call_time_pass_reference] => Array
    (
        [global_value] => 1
        [local_value] => 1
        [access] => 6
    )
    [allow_url_fopen] => Array
    (
        [global_value] => 1
        [local_value] => 1
        [access] => 7
    )

    ...

)
]]>
      </screen>
     </example>
    </para>
    <para>
     See also: <function>ini_get</function>,
     <function>ini_restore</function>, 
     <function>ini_set</function>,
     <function>get_loaded_extensions</function>, and
     <function>phpinfo</function>.
    </para>
   </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
-->