mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 16:32:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@332382 c90b9560-bf6c-de11-be94-00142212c4b1
255 lines
7.6 KiB
XML
255 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: b10cdc36e96382e11272dc549a58183b52370489 Maintainer: hugo_quintero Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<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 información sobre la configuración de PHP</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>phpinfo</methodname>
|
|
<methodparam choice="opt"><type>int</type><parameter>what</parameter><initializer>INFO_ALL</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Muestra gran cantidad de información sobre el estado actual de PHP.
|
|
Incluye información sobre las opciones de compilación y extensiones de PHP,
|
|
versión de PHP, información del servidor y entorno (si se compiló como módulo),
|
|
entorno PHP, versión del OS, rutas, valor de las opciones de configuración locales y generales,
|
|
cabeceras HTTP y licencia de PHP.
|
|
</para>
|
|
<para>
|
|
Como cada sistema se instala diferente <function>phpinfo</function>
|
|
se usa comúnmente para revisar<link
|
|
linkend="configuration">opciones de configuración </link> y
|
|
<link linkend="language.variables.predefined">variables
|
|
predefinidas </link> disponibles en un sistema dado
|
|
</para>
|
|
<para>
|
|
<function>phpinfo</function> también es una valiosa herramienta de depuración ya que
|
|
contiene todos valores EGPCS (Environment, GET, POST, Cookie, Server).
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>what</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El resultado de salida puede ser personalizado al pasar una o más de las
|
|
siguientes <emphasis>constantes</emphasis> sumadas juntas bit a bit
|
|
en el parámetro opcional <parameter>what</parameter>.
|
|
También se pueden combinar las respectivas constantes con el
|
|
operador bit a bit <link
|
|
linkend="language.operators.bitwise">or</link>.
|
|
</para>
|
|
<para>
|
|
<table>
|
|
<title><function>phpinfo</function> opciones</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Nombre(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, ubicación de &php.ini;, fecha de compilación,
|
|
servidor Web, sistema y más.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>INFO_CREDITS</entry>
|
|
<entry>2</entry>
|
|
<entry>
|
|
Créditos de PHP. Ver también <function>phpcredits</function>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>INFO_CONFIGURATION</entry>
|
|
<entry>4</entry>
|
|
<entry>
|
|
Valores Locales y Maestros actuales de las directivas PHP.
|
|
Ver también <function>ini_get</function>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>INFO_MODULES</entry>
|
|
<entry>8</entry>
|
|
<entry>
|
|
Módulos cargados y sus respectivos parámetros
|
|
Ver también <function>get_loaded_extensions</function>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>INFO_ENVIRONMENT</entry>
|
|
<entry>16</entry>
|
|
<entry>
|
|
Información de las variables de entorno.
|
|
Tambien disponibles en <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> de EGPCS
|
|
(Environment, GET, POST, Cookie, Server).
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>INFO_LICENSE</entry>
|
|
<entry>64</entry>
|
|
<entry>
|
|
Información de Licencia de PHP. Ver también el
|
|
<link xlink:href="&url.php.license;">FAQ de licencia</link>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>INFO_ALL</entry>
|
|
<entry>-1</entry>
|
|
<entry>
|
|
Muestra toda la información anterior
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>5.5.0</entry>
|
|
<entry>
|
|
Los GUIDs de logos fueron reemplazados con URIs de datos, por lo que desactivar
|
|
ahora expose_php no tiene efecto sobre el resutaldo de phpinfo(). Los créditos ahora
|
|
también han sido embebidos en la salida misma en vez mediante enlaces.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>5.2.2</entry>
|
|
<entry>
|
|
Se añadió la información del "Fichero de configuración cargado", mientras
|
|
que anteriormente solo existía "Ruta del fichero de configuración (php.ini).
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>phpinfo</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
// Muestra toda la información, por defecto INFO_ALL
|
|
phpinfo();
|
|
|
|
// Muestra solamente la información de los módulos.
|
|
// phpinfo(8) hace exactamente lo mismo.
|
|
phpinfo(INFO_MODULES);
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
En versiones de PHP anteriores a la 5.5.0, las partes de la información que se
|
|
muestra están deshabilidadas cuando la opción de configuración
|
|
<link linkend="ini.expose-php">expose_php</link> está establecida a <literal>off</literal>.
|
|
Esto incluye los logos de PHP y Zend y los créditos.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
<function>phpinfo</function> muestra texto plano en lugar de HTML cuando
|
|
se utiliza en la línea de comandos.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>phpversion</function></member>
|
|
<member><function>phpcredits</function></member>
|
|
<member><function>php_logo_guid</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">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
|
|
-->
|