cvs: phpdoc-it /chapters tutorial.xml

From: Date: Fri, 07 Mar 2003 22:46:08 +0000
Subject: cvs: phpdoc-it /chapters tutorial.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-292@lists.php.net to get a copy of this message
retnug Fri Mar 7 17:46:08 2003 EDT Modified files: /phpdoc-it/chapters tutorial.xml Log: traslation upgrade Index: phpdoc-it/chapters/tutorial.xml diff -u phpdoc-it/chapters/tutorial.xml:1.3 phpdoc-it/chapters/tutorial.xml:1.4 --- phpdoc-it/chapters/tutorial.xml:1.3 Fri Mar 7 17:01:00 2003 +++ phpdoc-it/chapters/tutorial.xml Fri Mar 7 17:46:07 2003 @@ -179,14 +179,14 @@ </para> <para> <example> - <title>Printing a variable (Array element)</title> + <title>Stampare viedeo una variable (elemento d'Array)</title> <programlisting role="php"> <![CDATA[ <?php echo $_SERVER["HTTP_USER_AGENT"]; ?> ]]> </programlisting> <para> - A sample output of this script may be: + L'output (risultato) di questo script potrebbe essere: <screen role="html"> Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) </screen> @@ -194,21 +194,21 @@ </example> </para> <para> - There are many <link linkend="language.types">types</link> of - variables available in PHP. In the above example we printed - an <link linkend="language.types.array">Array</link> element. - Arrays can be very useful. + Ci sono molti <link linkend="language.types">types</link> (tipi) di + variabili diponibili in PHP. Nell'esempio di sopra abbiamo stampato + un elemento di un'<link linkend="language.types.array">Array</link>. + Gli Array possono essere molto utili. </para> <para> - <varname>$_SERVER</varname> is just one variable that's automatically - made available to you by PHP. A list can be seen in the - <link linkend="reserved.variables">Reserved Variables</link> section - of the manual or you can get a complete list of them by creating - a file that looks like this: + <varname>$_SERVER</varname> &egrave; soltanto una variabile che autometicamente + viene resa diponibile da PHP. &Egrave; possibile visualizzare una lunga lista nella + sezione <link linkend="reserved.variables">Variabili riservate</link> del manuale + oppure ottenere la lista completa creando un file php nella seguente + forma: </para> <para> <example> - <title>Show all predefined variables with <function>phpinfo</function></title> + <title>Mostrare tutte le variabili predefinite di PHP con <function>phpinfo</function></title> <programlisting role="php"> <![CDATA[ <?php phpinfo(); ?> @@ -217,49 +217,49 @@ </example> </para> <para> - If you load up this file in your browser you will see a page - full of information about PHP along with a list of all the - variables available to you. + Se caricate questo documento da un browser riceverete una pagina + pienda d'informazioni circa PHP cos&igrave; come la lista di tutte le + variabili diponibili. </para> <para> - You can put multiple PHP statements inside a PHP tag and create - little blocks of code that do more than just a single echo. - For example, if we wanted to check for Internet Explorer we - could do something like this: + Potete mettere dichiarazioni multipli di PHP all'interno di un tag di PHP e + generare piccoli blocchi di codice che fanno di pi&ugrave; di un singolo echo. + Per esempio, se desiderassimo controllare per vedere se l'utente usa Internet + Explorer potremmo fare qualcosa come questo: </para> <para> <example> - <title>Example using <link linkend="control-structures">control - structures</link> and <link linkend="functions">functions</link></title> + <title>Esempi usando le <link linkend="control-structures">strutture di + controllo</link> e le <link linkend="functions">funzioni</link></title> <programlisting role="php"> <![CDATA[ <?php if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) { - echo "You are using Internet Explorer<br />"; + echo "Stai usando Internet Explorer<br />"; } ?> ]]> </programlisting> <para> - A sample output of this script may be: + L'output di esempio di questo script potrebbe essere: <screen role="html"> <![CDATA[ -You are using Internet Explorer<br /> +Stai usando Internet Explorer<br /> ]]> </screen> </para> </example> </para> <para> - Here we introduce a couple of new concepts. We have an - <link linkend="control-structures.if">if</link> statement. - If you are familiar with the basic syntax used by the C - language this should look logical to you. If you don't know enough - C or some other language where the syntax used above is used, you - should probably pick up any introductory PHP book and read the first - couple of chapters, or read the <link linkend="langref">Language - Reference</link> part of the manual. You can find a list of PHP books - at <ulink url="&url.php.books;">&url.php.books;</ulink>. + Qui introduciamo una coppia di nuovi concetti. Abbiamo la dichiarazione + <link linkend="control-structures.if">if</link>. Se avete una conoscenza + con la sintassi di base usata dal linguaggio C questo dovrebbe sembrare + logico per voi. Se non conoscete abbastanza C od un altro linguaggio dove + la sintassi usata qui sopra sia usata, dovreste probabilmente prendere + qualsiasi libro introduttivo di PHP e leggere i primi capitoli, o leggere + la parte del manuale relativa ai <link linkend="langref">Riferimenti del + Linguaggio</link>. Potete trovare una lista dei libri di PHP + su <ulink url="&url.php.books;">&url.php.books;</ulink>. </para> <para> The second concept we introduced was the <function>strstr</function>

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