-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathphpinfo.xml
More file actions
222 lines (212 loc) · 6.75 KB
/
phpinfo.xml
File metadata and controls
222 lines (212 loc) · 6.75 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f781803449007bb0e3a96c693e0eee067f7eb466 Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.phpinfo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>phpinfo</refname>
<refpurpose>Muestra numerosas informaciones sobre la configuración de PHP</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>true</type><methodname>phpinfo</methodname>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>INFO_ALL</constant></initializer></methodparam>
</methodsynopsis>
<para>
Muestra numerosas informaciones sobre PHP,
relativas a su configuración actual: opciones de compilación, extensiones,
versión, informaciones sobre el servidor, y el entorno (cuando es
compilado como módulo), entorno PHP, informaciones sobre el sistema,
rutas, valores generales y locales de configuración, encabezados HTTP y
la licencia PHP.
</para>
<para>
Como todos los sistemas están configurados de manera diferente,
<function>phpinfo</function> sirve generalmente para verificar la
<link linkend="configuration">configuración</link> así como las
<link linkend="language.variables.predefined">variables predefinidas</link>,
para una plataforma dada.
</para>
<para>
<function>phpinfo</function> es una buena herramienta de depuración, ya que
muestra el contenido de todas las variables EGPCS (Entorno, GET,
POST, Cookie, Servidor).
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>flags</parameter></term>
<listitem>
<para>
La visualización puede ser personalizada utilizando una o varias de
las <emphasis>constantes siguientes</emphasis>. Estas son combinables con el
<link linkend="language.operators.bitwise">operador a nivel de bits</link>, y deben ser
pasadas en el argumento <parameter>flags</parameter>. También se pueden
sumar estas constantes.
</para>
<para>
<table>
<title>Opciones de <function>phpinfo</function></title>
<tgroup cols="3">
<thead>
<row>
<entry>Nombre de la constante</entry>
<entry>Valor</entry>
<entry>Descripción</entry>
</row>
</thead>
<tbody>
<row>
<entry>INFO_GENERAL</entry>
<entry>1</entry>
<entry>
La línea de configuración, la ruta del &php.ini;, la fecha de
compilación, el servidor web, el sistema, etc.
</entry>
</row>
<row>
<entry>INFO_CREDITS</entry>
<entry>2</entry>
<entry>
Los créditos de PHP. Ver también <function>phpcredits</function>.
</entry>
</row>
<row>
<entry>INFO_CONFIGURATION</entry>
<entry>4</entry>
<entry>
Valores actuales locales y generales de las directivas PHP.
Ver también la función <function>ini_get</function>.
</entry>
</row>
<row>
<entry>INFO_MODULES</entry>
<entry>8</entry>
<entry>
Módulos cargados y su configuración específica. Ver también la
función <function>get_loaded_extensions</function>.
</entry>
</row>
<row>
<entry>INFO_ENVIRONMENT</entry>
<entry>16</entry>
<entry>
Informaciones sobre las variables de entorno, que están
disponibles en la variable <varname>$_ENV</varname>.
</entry>
</row>
<row>
<entry>INFO_VARIABLES</entry>
<entry>32</entry>
<entry>
Muestra todas las
<link linkend="language.variables.predefined">variables predefinidas</link>,
provenientes del entorno, el método GET, el método POST, las
cookies y el servidor.
</entry>
</row>
<row>
<entry>INFO_LICENSE</entry>
<entry>64</entry>
<entry>
La licencia PHP. Ver también
<link xlink:href="&url.php.license;">la FAQ de la licencia</link>.
</entry>
</row>
<row>
<entry>INFO_ALL</entry>
<entry>-1</entry>
<entry>
Muestra todas las informaciones mencionadas.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.true.always;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Ejemplo con <function>phpinfo</function></title>
<programlisting role="php">
<![CDATA[
<?php
// Muestra todas las informaciones, como lo haría INFO_ALL
phpinfo();
// Muestra únicamente el módulo de información.
// phpinfo(8) proporcionaría las mismas informaciones.
phpinfo(INFO_MODULES);
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
En las versiones anteriores a PHP 5.5, parte de las informaciones
mostradas están desactivadas si la directiva
<link linkend="ini.expose-php">expose_php</link> está configurada con
el valor <literal>off</literal>. Esto incluye los logos PHP y Zend,
así como los créditos.
</para>
</note>
<note>
<para>
<function>phpinfo</function> muestra texto en lugar de HTML cuando
se utiliza la versión CLI.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>phpversion</function></member>
<member><function>phpcredits</function></member>
<member><function>ini_get</function></member>
<member><function>ini_set</function></member>
<member><function>get_loaded_extensions</function></member>
<member><link linkend="language.variables.predefined">las variables predefinidas</link></member>
</simplelist>
</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
-->