mirror of
https://github.com/php/doc-it.git
synced 2026-03-25 08:02:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@327389 c90b9560-bf6c-de11-be94-00142212c4b1
187 lines
5.8 KiB
XML
187 lines
5.8 KiB
XML
<?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
|
|
-->
|