-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathphpinfo.xml
More file actions
186 lines (182 loc) · 5.78 KB
/
phpinfo.xml
File metadata and controls
186 lines (182 loc) · 5.78 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: n/a Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.2 -->
<refentry xml:id="function.phpinfo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>phpinfo</refname>
<refpurpose>Visualizza diverse informazioni sul PHP</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>int</type><methodname>phpinfo</methodname>
<methodparam choice="opt"><type>int</type><parameter>what</parameter></methodparam>
</methodsynopsis>
<para>
Visualizza molte informazioni sullo stato corrente del PHP
Queste includono informazioni sulle opzioni di compila del PHP,
sui moduli, la versioen di PHP, informazioni sul server e sull'ambiente
(se compilato come modulo), l'ambiente PHP, la versione di OS,
percorsi, valori delle configurazioni base e attauli,
intestazioni HTTP e la licenza del PHP.
</para>
<para>
Dato che ogni sistema ha una cofigurazione differente,
<function>phpinfo</function> viene comunemente utilizzato per verificare <link
linkend="configuration">le impostazioni di configurazione</link> e le
<link linkend="language.variables.predefined">variabili
predefinite</link>
disponibili in un dato sistema. Inoltre,
<function>phpinfo</function> è utili come strumento di debug poiché visualizza
tutti i dati EGPCS (Environment, GET, POST, Cookie, Server).
</para>
<para>
L'output può essere personalizzato passando una o più delle seguenti
<emphasis>costanti</emphasis> sommate a livello di bit
nel parametro opzionale <parameter>what</parameter>.
Le costanti, o i rispettivi valori, possono essere combinati
anche con l'operatore <link
linkend="language.operators.bitwise">or</link>.
</para>
<para>
<table>
<title>Opzioni di <function>phpinfo</function></title>
<tgroup cols="3">
<thead>
<row>
<entry>Nome (constant)</entry>
<entry>Valore</entry>
<entry>Descrizione</entry>
</row>
</thead>
<tbody>
<row>
<entry>INFO_GENERAL</entry>
<entry>1</entry>
<entry>
La linea di configurazione, &php.ini; luogo, data di compila, Web
Server, sistema e altro.
</entry>
</row>
<row>
<entry>INFO_CREDITS</entry>
<entry>2</entry>
<entry>
PHP 4 Credits. Vedere anche <function>phpcredits</function>.
</entry>
</row>
<row>
<entry>INFO_CONFIGURATION</entry>
<entry>4</entry>
<entry>
Impostazioni correnti e di base delle opzioni PHP. Vedere anche
<function>ini_get</function>.
</entry>
</row>
<row>
<entry>INFO_MODULES</entry>
<entry>8</entry>
<entry>
Moduli caricati e le loro impostazioni. Vedere anche
<function>get_loaded_extensions</function>.
</entry>
</row>
<row>
<entry>INFO_ENVIRONMENT</entry>
<entry>16</entry>
<entry>
Variabili d'ambiente disponibili in
<varname>$_ENV</varname>.
</entry>
</row>
<row>
<entry>INFO_VARIABLES</entry>
<entry>32</entry>
<entry>
Visualizza tutte le <link linkend="language.variables.predefined">
variabili predefinite</link> da EGPCS (Environment, GET,
POST, Cookie, Server).
</entry>
</row>
<row>
<entry>INFO_LICENSE</entry>
<entry>64</entry>
<entry>
Informazioni sulla licenza di PHP. Vedere anche <link
xlink:href="&url.php.license;">faq sulla licenza</link>.
</entry>
</row>
<row>
<entry>INFO_ALL</entry>
<entry>-1</entry>
<entry>
Visualizza tutto quanto descritto. Questo è il valore dei default.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
<example>
<title>Esempio di uso di <function>phpinfo</function></title>
<programlisting role="php">
<![CDATA[
<?php
// Visualizza tutte le informazioni, default: INFO_ALL
phpinfo();
// Solo le informazioni sui moduli
// phpinfo(8) visualizza il medesimo risultato
phpinfo(INFO_MODULES);
?>
]]>
</programlisting>
</example>
</para>
<note>
<para>
La visualizzazione di parte delle informazioni è disabilitata quando
<link linkend="ini.expose-php">expose_php</link> viene impostato a
<literal>off</literal>. Queste includono i loghi PHP e Zend,
e i credits.
</para>
</note>
<note>
<para>
La funzione <function>phpinfo</function> produce un testo normale anzichè un file HTML
quando è utilizzata in modalità CLI.
</para>
</note>
<para>
Vedere anche <function>phpversion</function>,
<function>phpcredits</function>,
<function>php_logo_guid</function>,
<function>ini_get</function>,
<function>ini_set</function>,
<function>get_loaded_extensions</function>
e la sezione sulle <link
linkend="language.variables.predefined">Variabili
Predefinite</link>.
</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:"~/.phpdoc/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
-->