cvs: phpdoc-it /chapters tutorial.xml

From: Date: Mon, 03 Mar 2003 21:35:15 +0000
Subject: cvs: phpdoc-it /chapters tutorial.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-281@lists.php.net to get a copy of this message
retnug Mon Mar 3 16:35:15 2003 EDT Modified files: /phpdoc-it/chapters tutorial.xml Log: traslation add Index: phpdoc-it/chapters/tutorial.xml diff -u phpdoc-it/chapters/tutorial.xml:1.1 phpdoc-it/chapters/tutorial.xml:1.2 --- phpdoc-it/chapters/tutorial.xml:1.1 Thu Jan 23 11:30:45 2003 +++ phpdoc-it/chapters/tutorial.xml Mon Mar 3 16:35:15 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.10 Maintainer: cortesi Status: translating --> +<!-- EN-Revision: 1.12 Maintainer: cortesi Status: translating --> <chapter id="tutorial"> <title>Una semplice introduzione</title> @@ -150,33 +150,32 @@ </sect1> <sect1 id="tutorial.useful"> - <title>Something Useful</title> + <title>Qualcosa di utile</title> <para> - Let's do something a bit more useful now. We are going to check - what sort of browser the person viewing the page is using. - In order to do that we check the user agent string that the browser - sends as part of its HTTP request. This information is stored in a <link - linkend="language.variables">variable</link>. Variables always start - with a dollar-sign in PHP. The variable we are interested in right now - is <varname>$_SERVER["HTTP_USER_AGENT"]</varname>. + Andiamo a fare qualcosa leggermente pi&ugrave; utile. andremo a controllare + che tipo di browser sta utilizzando la persona che visita le nostre pagine. + Per fare questo andremo a controllare la stringa del user agent che il bowser + invia come parte della sua riciesta HTTP. Quest'informazione viene inviata in una <link + linkend="language.variables">variabile</link>. Le Variabili iniziano sempre + con il simbolo di dollaro &#36; in PHP. La variabile alla queale ci rifferiamo adesso + &egrave; <varname>$_SERVER["HTTP_USER_AGENT"]</varname>. </para> <note> - <title>PHP Autoglobals Note</title> + <title>Note su variabili Autoglobali di PHP</title> <para> - <link linkend="reserved.variables.server">$_SERVER</link> is a - special reserved PHP variable that contains all web server information. - It's known as an Autoglobal (or Superglobal). See the related manual page on - <link linkend="language.variables.superglobals">Autoglobals</link> - for more information. These special variables were introduced in PHP - <ulink url="&url.php.release4.1.0;">4.1.0</ulink>. Before this time, we used - the older <varname>$HTTP_*_VARS</varname> arrays instead, - such as <varname>$HTTP_SERVER_VARS</varname>. Although deprecated, - these older variables still exist. (See also the note on - <link linkend="tutorial.oldcode">old code</link>.) + <link linkend="reserved.variables.server">$_SERVER</link> &egrave; una variabile + speciale riservata a PHP la quale contiene tutte le informazioni relative al Web Server. + &Egrave; conosciuta come Variabile autoglobale (o Superglobale). &Egrave; possibile vedere + la pagina del manuale <link linkend="language.variables.superglobals">Autoglobals</link> + per maggiori informazioni. Questo tipo di variabili sono state introdotte nella versione + <ulink url="&url.php.release4.1.0;">4.1.0</ulink> di PHP. Nelle versioni precedenti abbiamo + utilizzato le ormai vecchie <varname>$HTTP_SERVER_VARS</varname>, ormao in disuso, + anche se queste continuano ad esistere. (Potete dare un'occhiata nelle note + di <link linkend="tutorial.oldcode">vecchio codice</link>.) </para> </note> <para> - To display this variable, we can simply do: + Per visualizzare questa varuabile, dobbiamo semplicemente: </para> <para> <example>

« previous php.doc.it (#281) next »