cvs: phpdoc-it /reference/bc/functions bcmod.xml bcmul.xml bcpow.xml bcpowmod.xml bcscale.xml bcsqrt.xml bcsub.xml /reference/bzip2 reference.xml
/reference/bzip2/functions bzcompress.xml bzdecompress.xml bzopen.xml
| From: | Marco Cucinato | Date: | Mon, 05 Jan 2004 23:08:05 +0000 |
| Subject: | cvs: phpdoc-it /reference/bc/functions bcmod.xml bcmul.xml bcpow.xml bcpowmod.xml bcscale.xml bcsqrt.xml bcsub.xml /reference/bzip2 reference.xml /reference/bzip2/functions bzcompress.xml bzdecompress.xml bzopen.xml |
||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-487@lists.php.net to get a copy of this message | ||
cucinato Mon Jan 5 18:08:05 2004 EDT
Modified files:
/phpdoc-it/reference/bc/functions bcmod.xml bcmul.xml bcpow.xml
bcpowmod.xml bcscale.xml
bcsqrt.xml bcsub.xml
/phpdoc-it/reference/bzip2 reference.xml
/phpdoc-it/reference/bzip2/functions bzcompress.xml
bzdecompress.xml bzopen.xml
Log:
Sync to EN tree
Index: phpdoc-it/reference/bc/functions/bcmod.xml diff -u phpdoc-it/reference/bc/functions/bcmod.xml:1.2 phpdoc-it/reference/bc/functions/bcmod.xml:1.3 --- phpdoc-it/reference/bc/functions/bcmod.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bcmod.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcmod' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcmod"> <refnamediv> @@ -22,6 +22,28 @@ <parameter>modulo</parameter>. </para> <para> + <example> + <title>esempio di <function>bcmod</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod(4, 2) . "\n"; +echo bcmod(2, 4); +?> +]]> + </programlisting> + <para> + L'esempio mostrerà: + </para> + <screen> +<![CDATA[ +0 +2 +]]> + </screen> + </example> + </para> + <para> Vedere anche <function>bcdiv</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bcmul.xml diff -u phpdoc-it/reference/bc/functions/bcmul.xml:1.2 phpdoc-it/reference/bc/functions/bcmul.xml:1.3 --- phpdoc-it/reference/bc/functions/bcmul.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcmul.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcmul' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcmul"> <refnamediv> @@ -23,6 +23,28 @@ dopo il punto decimale nel risultato. </para> <para> + <example> + <title>esempio di <function>bcmul</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul(1.34747474747, 35, 3) . "\n"; +echo bcmul(2, 4); +?> +]]> + </programlisting> + <para> + L'esempio mostrerà: + </para> + <screen> +<![CDATA[ +47.162 +8 +]]> + </screen> + </example> + </para> + <para> Vedere anche <function>bcdiv</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bcpow.xml diff -u phpdoc-it/reference/bc/functions/bcpow.xml:1.4 phpdoc-it/reference/bc/functions/bcpow.xml:1.5 --- phpdoc-it/reference/bc/functions/bcpow.xml:1.4 Sat Apr 19 13:19:47 2003 +++ phpdoc-it/reference/bc/functions/bcpow.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcpow' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcpow"> <refnamediv> @@ -25,6 +25,20 @@ dopo il punto decimale nel risultato. </para> <para> + <example> + <title><function>bcpow</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow(4.2, 3, 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcsqrt</function> e <function>bcsqrt</function>. </para> Index: phpdoc-it/reference/bc/functions/bcpowmod.xml diff -u phpdoc-it/reference/bc/functions/bcpowmod.xml:1.2 phpdoc-it/reference/bc/functions/bcpowmod.xml:1.3 --- phpdoc-it/reference/bc/functions/bcpowmod.xml:1.2 Sat Apr 19 13:19:47 2003 +++ phpdoc-it/reference/bc/functions/bcpowmod.xml Mon Jan 5 18:08:03 2004 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <refentry id="function.bcpowmod"> <refnamediv> <refname>bcpowmod</refname> <refpurpose> - Effettua l'elevamento a potenza, iapplicando quindi il modulo. + Effettua l'elevamento a potenza, applicando quindi il modulo. </refpurpose> </refnamediv> <refsect1> @@ -20,7 +20,7 @@ Utilizza il metodo di esponenziazione veloce per elevare <parameter>x</parameter> alla potenza <parameter>y</parameter> rispetto al modulo <parameter>modulo</parameter>. Il parametro opzionale - <parameter>precisione</parameter> può essere utilizzatop per impostare il numero di + <parameter>precisione</parameter> può essere utilizzato per impostare il numero di cifre dopo il punto decimale. </simpara> <para> @@ -31,11 +31,12 @@ <programlisting role="php"> <![CDATA[ <?php -$a = bcpowmod($x,$y,$mod); +$a = bcpowmod($x, $y, $mod); -$b = bcmod(bcpow($x,$y),$mod); +$b = bcmod(bcpow($x, $y), $mod); + +// $a e $b sono uguali. -/* $a e $b sono uguali. */ ?> ]]> </programlisting> Index: phpdoc-it/reference/bc/functions/bcscale.xml diff -u phpdoc-it/reference/bc/functions/bcscale.xml:1.2 phpdoc-it/reference/bc/functions/bcscale.xml:1.3 --- phpdoc-it/reference/bc/functions/bcscale.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcscale.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcscale' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcscale"> <refnamediv> @@ -21,6 +21,25 @@ BCMath susseguenti, che non specifichino esplicitamente un parametro di precisione numerica. </para> + <para> + <example> + <title>esempio di <function>bcscale</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// precisione di default : 3 +bcscale(3); +echo bcdiv(105, 6.55957); // 16.007 + +// la stessa cosa, senza utilizzare bcscale() +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> Index: phpdoc-it/reference/bc/functions/bcsqrt.xml diff -u phpdoc-it/reference/bc/functions/bcsqrt.xml:1.2 phpdoc-it/reference/bc/functions/bcsqrt.xml:1.3 --- phpdoc-it/reference/bc/functions/bcsqrt.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcsqrt.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcsqrt' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcsqrt"> <refnamediv> @@ -23,6 +23,20 @@ numero di cifre dopo il punto decimale nel risultato. </para> <para> + <example> + <title>esempio di <function>bcsqrt</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcsqrt(2, 3); // 1.414 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcpow</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bcsub.xml diff -u phpdoc-it/reference/bc/functions/bcsub.xml:1.2 phpdoc-it/reference/bc/functions/bcsub.xml:1.3 --- phpdoc-it/reference/bc/functions/bcsub.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcsub.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcsub' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcsub"> <refnamediv> @@ -26,6 +26,24 @@ risultato. </para> <para> + <example> + <title>esempio di <function>bcsub</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcsub($a, $b); // -3 +echo bcsub($a, $b, 4); // -3.7660 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcadd</function>. </para> </refsect1> Index: phpdoc-it/reference/bzip2/reference.xml diff -u phpdoc-it/reference/bzip2/reference.xml:1.5 phpdoc-it/reference/bzip2/reference.xml:1.6 --- phpdoc-it/reference/bzip2/reference.xml:1.5 Tue Jan 7 13:09:33 2003 +++ phpdoc-it/reference/bzip2/reference.xml Mon Jan 5 18:08:04 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> - <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> + <!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <reference id="ref.bzip2"> <title>Funzioni di compressione Bzip2</title> <titleabbrev>Bzip2</titleabbrev> @@ -32,7 +32,7 @@ <section id="bzip2.resources"> &reftitle.resources; <para> - Questa estensione definisce un tipi di risorsa: un puntatore a file che identifica + Questa estensione definisce un tipo di risorsa: un puntatore a file che identifica il file bz2 su cui lavorare. </para> </section> @@ -70,10 +70,10 @@ $bz = bzopen($nomefile, "r"); // legge 10 caratteri -print bzread($bz, 10); +echo bzread($bz, 10); // stampa fino alla fine del file (o fino ai prossimi 1024 caratteri) e chiude il file. -print bzread($bz); +echo bzread($bz); bzclose($bz); Index: phpdoc-it/reference/bzip2/functions/bzcompress.xml diff -u phpdoc-it/reference/bzip2/functions/bzcompress.xml:1.2 phpdoc-it/reference/bzip2/functions/bzcompress.xml:1.3 --- phpdoc-it/reference/bzip2/functions/bzcompress.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bzip2/functions/bzcompress.xml Mon Jan 5 18:08:05 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bzip2.xml, last change in rev 1.1 --> <!-- last change to 'bzcompress' in en/ tree in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.20/EN.1.1 --> <refentry id="function.bzcompress"> <refnamediv> @@ -24,15 +24,15 @@ <para> Il parametro opzionale <parameter>dimblocco</parameter> specifica la dimensione del blocco usato durante la compressione e dovrebbe essere un numero tra - 1 e 9 dove 9 dà la compressione migliore, ma usando più + 1 e 9 dove 9 dà la compressione migliore, ma usando più risorse. <parameter>dimblocco</parameter> ha come valore predefinito 4. </para> <para> Il parametro opzionale <parameter>workfactor</parameter> controlla il comportamento della fase di compressione quando deve trattare col caso peggiore, - ovvero dati in ingresso molto ripetitivi. Il valore può variare tra 0 e - 250, dove 0 è un caso speciale e 30 egrave; il valore di + ovvero dati in ingresso molto ripetitivi. Il valore può variare tra 0 e + 250, dove 0 è un caso speciale e 30 è il valore di default. Indipendentemente dal parametro <parameter>workfactor</parameter>, i dat generati sono gli stessi. </para> @@ -44,7 +44,7 @@ <?php $str = "dati di prova"; $bzstr = bzcompress($str, 9); -print( $bzstr ); +echo $bzstr; ?> ]]> </programlisting> Index: phpdoc-it/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc-it/reference/bzip2/functions/bzdecompress.xml:1.2 phpdoc-it/reference/bzip2/functions/bzdecompress.xml:1.3 --- phpdoc-it/reference/bzip2/functions/bzdecompress.xml:1.2 Wed Apr 17 03:05:21 2002 +++ phpdoc-it/reference/bzip2/functions/bzdecompress.xml Mon Jan 5 18:08:05 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bzip2.xml, last change in rev 1.1 --> <!-- last change to 'bzdecompress' in en/ tree in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.20/EN.1.1 --> <refentry id="function.bzdecompress"> <refnamediv> @@ -17,13 +17,13 @@ </methodsynopsis> <para> <function>bzdecompress</function> decomprime la - strina <parameter>sorgente</parameter> contenente dati codificati in bzip2 + stringa <parameter>sorgente</parameter> contenente dati codificati in bzip2 e li restituisce. Se il parametro opzionale - <parameter>small</parameter> è &true;, verrà usato un + <parameter>small</parameter> è &true;, verrà usato un algoritmo di decompressione alternativo che richiede meno memoria (la - maximum quantità massima di meoria richiesta scende a 2300K) ma funziona a - circa la metà della velocità. Vedere la <ulink url="&url.bzip2;">documentazione di - bzip2</ulink> per maggiori informazioni su questa funzionalità. + maximum quantità massima di memoria richiesta scende a 2300K) ma funziona a + circa la metà della velocità. Vedere la <ulink url="&url.bzip2;">documentazione di + bzip2</ulink> per maggiori informazioni su questa funzionalità. </para> <para> <example> @@ -34,14 +34,14 @@ $stringa_iniziale = "Sto facendo il mio lavoro?"; $bzstr = bzcompress($start_str); -print( "Stirnga Compressa: " ); -print( $bzstr ); -print( "\n<br>n" ); +echo "Stirnga Compressa: "; +echo $bzstr; +echo "\n<br />\n"; $stringa = bzdecompress($bzstr); -print( "Stringa Decompressa: " ); -print( $str ); -print( "\n<br>n" ); +echo "Stringa Decompressa: "; +echo $str; +echo "\n<br />\n"; ?> ]]> </programlisting> Index: phpdoc-it/reference/bzip2/functions/bzopen.xml diff -u phpdoc-it/reference/bzip2/functions/bzopen.xml:1.2 phpdoc-it/reference/bzip2/functions/bzopen.xml:1.3 --- phpdoc-it/reference/bzip2/functions/bzopen.xml:1.2 Wed Apr 17 03:05:21 2002 +++ phpdoc-it/reference/bzip2/functions/bzopen.xml Mon Jan 5 18:08:05 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bzip2.xml, last change in rev 1.1 --> <!-- last change to 'bzopen' in en/ tree in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.20/EN.1.1 --> <refentry id="function.bzopen"> <refnamediv> @@ -17,8 +17,8 @@ </methodsynopsis> <para> Apre un file bzip2 (.bz2) in lettura o scrittura. - <parameter>nomefile</parameter> è il nome del file da - aprire. Il parametro <parameter>modo</parameter> egrave; simile a quello + <parameter>nomefile</parameter> è il nome del file da + aprire. Il parametro <parameter>modo</parameter> è simile a quello della funzione <function>fopen</function> (`r' per lettura, `w' per scrittura, ecc.). </para> <para> @@ -31,13 +31,12 @@ <programlisting role="php"> <![CDATA[ <?php -$bz = bzopen("/tmp/foo.bz2", "r"); -$file_decompresso = bzread($bz, filesize("/tmp/foo.bz2")); + +$file = "/tmp/foo.bz2"; +$bz = bzopen($file, "r") or die("non sono riuscito ad aprire in lettura $file"); + bzclose($bz); -print( "Il contenuto di /tmp/foo.bz2 è: " ); -print( "\n<br>n" ); -print( $file_decompresso ); ?> ]]> </programlisting>
Index: phpdoc-it/reference/bc/functions/bcmod.xml diff -u phpdoc-it/reference/bc/functions/bcmod.xml:1.2 phpdoc-it/reference/bc/functions/bcmod.xml:1.3 --- phpdoc-it/reference/bc/functions/bcmod.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bcmod.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcmod' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcmod"> <refnamediv> @@ -22,6 +22,28 @@ <parameter>modulo</parameter>. </para> <para> + <example> + <title>esempio di <function>bcmod</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmod(4, 2) . "\n"; +echo bcmod(2, 4); +?> +]]> + </programlisting> + <para> + L'esempio mostrerà: + </para> + <screen> +<![CDATA[ +0 +2 +]]> + </screen> + </example> + </para> + <para> Vedere anche <function>bcdiv</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bcmul.xml diff -u phpdoc-it/reference/bc/functions/bcmul.xml:1.2 phpdoc-it/reference/bc/functions/bcmul.xml:1.3 --- phpdoc-it/reference/bc/functions/bcmul.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcmul.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcmul' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcmul"> <refnamediv> @@ -23,6 +23,28 @@ dopo il punto decimale nel risultato. </para> <para> + <example> + <title>esempio di <function>bcmul</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bcmul(1.34747474747, 35, 3) . "\n"; +echo bcmul(2, 4); +?> +]]> + </programlisting> + <para> + L'esempio mostrerà: + </para> + <screen> +<![CDATA[ +47.162 +8 +]]> + </screen> + </example> + </para> + <para> Vedere anche <function>bcdiv</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bcpow.xml diff -u phpdoc-it/reference/bc/functions/bcpow.xml:1.4 phpdoc-it/reference/bc/functions/bcpow.xml:1.5 --- phpdoc-it/reference/bc/functions/bcpow.xml:1.4 Sat Apr 19 13:19:47 2003 +++ phpdoc-it/reference/bc/functions/bcpow.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcpow' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcpow"> <refnamediv> @@ -25,6 +25,20 @@ dopo il punto decimale nel risultato. </para> <para> + <example> + <title><function>bcpow</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow(4.2, 3, 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcsqrt</function> e <function>bcsqrt</function>. </para> Index: phpdoc-it/reference/bc/functions/bcpowmod.xml diff -u phpdoc-it/reference/bc/functions/bcpowmod.xml:1.2 phpdoc-it/reference/bc/functions/bcpowmod.xml:1.3 --- phpdoc-it/reference/bc/functions/bcpowmod.xml:1.2 Sat Apr 19 13:19:47 2003 +++ phpdoc-it/reference/bc/functions/bcpowmod.xml Mon Jan 5 18:08:03 2004 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <refentry id="function.bcpowmod"> <refnamediv> <refname>bcpowmod</refname> <refpurpose> - Effettua l'elevamento a potenza, iapplicando quindi il modulo. + Effettua l'elevamento a potenza, applicando quindi il modulo. </refpurpose> </refnamediv> <refsect1> @@ -20,7 +20,7 @@ Utilizza il metodo di esponenziazione veloce per elevare <parameter>x</parameter> alla potenza <parameter>y</parameter> rispetto al modulo <parameter>modulo</parameter>. Il parametro opzionale - <parameter>precisione</parameter> può essere utilizzatop per impostare il numero di + <parameter>precisione</parameter> può essere utilizzato per impostare il numero di cifre dopo il punto decimale. </simpara> <para> @@ -31,11 +31,12 @@ <programlisting role="php"> <![CDATA[ <?php -$a = bcpowmod($x,$y,$mod); +$a = bcpowmod($x, $y, $mod); -$b = bcmod(bcpow($x,$y),$mod); +$b = bcmod(bcpow($x, $y), $mod); + +// $a e $b sono uguali. -/* $a e $b sono uguali. */ ?> ]]> </programlisting> Index: phpdoc-it/reference/bc/functions/bcscale.xml diff -u phpdoc-it/reference/bc/functions/bcscale.xml:1.2 phpdoc-it/reference/bc/functions/bcscale.xml:1.3 --- phpdoc-it/reference/bc/functions/bcscale.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcscale.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcscale' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcscale"> <refnamediv> @@ -21,6 +21,25 @@ BCMath susseguenti, che non specifichino esplicitamente un parametro di precisione numerica. </para> + <para> + <example> + <title>esempio di <function>bcscale</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// precisione di default : 3 +bcscale(3); +echo bcdiv(105, 6.55957); // 16.007 + +// la stessa cosa, senza utilizzare bcscale() +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> Index: phpdoc-it/reference/bc/functions/bcsqrt.xml diff -u phpdoc-it/reference/bc/functions/bcsqrt.xml:1.2 phpdoc-it/reference/bc/functions/bcsqrt.xml:1.3 --- phpdoc-it/reference/bc/functions/bcsqrt.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcsqrt.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcsqrt' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcsqrt"> <refnamediv> @@ -23,6 +23,20 @@ numero di cifre dopo il punto decimale nel risultato. </para> <para> + <example> + <title>esempio di <function>bcsqrt</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcsqrt(2, 3); // 1.414 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcpow</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bcsub.xml diff -u phpdoc-it/reference/bc/functions/bcsub.xml:1.2 phpdoc-it/reference/bc/functions/bcsub.xml:1.3 --- phpdoc-it/reference/bc/functions/bcsub.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bc/functions/bcsub.xml Mon Jan 5 18:08:03 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcsub' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcsub"> <refnamediv> @@ -26,6 +26,24 @@ risultato. </para> <para> + <example> + <title>esempio di <function>bcsub</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcsub($a, $b); // -3 +echo bcsub($a, $b, 4); // -3.7660 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcadd</function>. </para> </refsect1> Index: phpdoc-it/reference/bzip2/reference.xml diff -u phpdoc-it/reference/bzip2/reference.xml:1.5 phpdoc-it/reference/bzip2/reference.xml:1.6 --- phpdoc-it/reference/bzip2/reference.xml:1.5 Tue Jan 7 13:09:33 2003 +++ phpdoc-it/reference/bzip2/reference.xml Mon Jan 5 18:08:04 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> - <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> + <!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <reference id="ref.bzip2"> <title>Funzioni di compressione Bzip2</title> <titleabbrev>Bzip2</titleabbrev> @@ -32,7 +32,7 @@ <section id="bzip2.resources"> &reftitle.resources; <para> - Questa estensione definisce un tipi di risorsa: un puntatore a file che identifica + Questa estensione definisce un tipo di risorsa: un puntatore a file che identifica il file bz2 su cui lavorare. </para> </section> @@ -70,10 +70,10 @@ $bz = bzopen($nomefile, "r"); // legge 10 caratteri -print bzread($bz, 10); +echo bzread($bz, 10); // stampa fino alla fine del file (o fino ai prossimi 1024 caratteri) e chiude il file. -print bzread($bz); +echo bzread($bz); bzclose($bz); Index: phpdoc-it/reference/bzip2/functions/bzcompress.xml diff -u phpdoc-it/reference/bzip2/functions/bzcompress.xml:1.2 phpdoc-it/reference/bzip2/functions/bzcompress.xml:1.3 --- phpdoc-it/reference/bzip2/functions/bzcompress.xml:1.2 Wed Apr 17 03:05:20 2002 +++ phpdoc-it/reference/bzip2/functions/bzcompress.xml Mon Jan 5 18:08:05 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bzip2.xml, last change in rev 1.1 --> <!-- last change to 'bzcompress' in en/ tree in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.20/EN.1.1 --> <refentry id="function.bzcompress"> <refnamediv> @@ -24,15 +24,15 @@ <para> Il parametro opzionale <parameter>dimblocco</parameter> specifica la dimensione del blocco usato durante la compressione e dovrebbe essere un numero tra - 1 e 9 dove 9 dà la compressione migliore, ma usando più + 1 e 9 dove 9 dà la compressione migliore, ma usando più risorse. <parameter>dimblocco</parameter> ha come valore predefinito 4. </para> <para> Il parametro opzionale <parameter>workfactor</parameter> controlla il comportamento della fase di compressione quando deve trattare col caso peggiore, - ovvero dati in ingresso molto ripetitivi. Il valore può variare tra 0 e - 250, dove 0 è un caso speciale e 30 egrave; il valore di + ovvero dati in ingresso molto ripetitivi. Il valore può variare tra 0 e + 250, dove 0 è un caso speciale e 30 è il valore di default. Indipendentemente dal parametro <parameter>workfactor</parameter>, i dat generati sono gli stessi. </para> @@ -44,7 +44,7 @@ <?php $str = "dati di prova"; $bzstr = bzcompress($str, 9); -print( $bzstr ); +echo $bzstr; ?> ]]> </programlisting> Index: phpdoc-it/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc-it/reference/bzip2/functions/bzdecompress.xml:1.2 phpdoc-it/reference/bzip2/functions/bzdecompress.xml:1.3 --- phpdoc-it/reference/bzip2/functions/bzdecompress.xml:1.2 Wed Apr 17 03:05:21 2002 +++ phpdoc-it/reference/bzip2/functions/bzdecompress.xml Mon Jan 5 18:08:05 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bzip2.xml, last change in rev 1.1 --> <!-- last change to 'bzdecompress' in en/ tree in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.20/EN.1.1 --> <refentry id="function.bzdecompress"> <refnamediv> @@ -17,13 +17,13 @@ </methodsynopsis> <para> <function>bzdecompress</function> decomprime la - strina <parameter>sorgente</parameter> contenente dati codificati in bzip2 + stringa <parameter>sorgente</parameter> contenente dati codificati in bzip2 e li restituisce. Se il parametro opzionale - <parameter>small</parameter> è &true;, verrà usato un + <parameter>small</parameter> è &true;, verrà usato un algoritmo di decompressione alternativo che richiede meno memoria (la - maximum quantità massima di meoria richiesta scende a 2300K) ma funziona a - circa la metà della velocità. Vedere la <ulink url="&url.bzip2;">documentazione di - bzip2</ulink> per maggiori informazioni su questa funzionalità. + maximum quantità massima di memoria richiesta scende a 2300K) ma funziona a + circa la metà della velocità. Vedere la <ulink url="&url.bzip2;">documentazione di + bzip2</ulink> per maggiori informazioni su questa funzionalità. </para> <para> <example> @@ -34,14 +34,14 @@ $stringa_iniziale = "Sto facendo il mio lavoro?"; $bzstr = bzcompress($start_str); -print( "Stirnga Compressa: " ); -print( $bzstr ); -print( "\n<br>n" ); +echo "Stirnga Compressa: "; +echo $bzstr; +echo "\n<br />\n"; $stringa = bzdecompress($bzstr); -print( "Stringa Decompressa: " ); -print( $str ); -print( "\n<br>n" ); +echo "Stringa Decompressa: "; +echo $str; +echo "\n<br />\n"; ?> ]]> </programlisting> Index: phpdoc-it/reference/bzip2/functions/bzopen.xml diff -u phpdoc-it/reference/bzip2/functions/bzopen.xml:1.2 phpdoc-it/reference/bzip2/functions/bzopen.xml:1.3 --- phpdoc-it/reference/bzip2/functions/bzopen.xml:1.2 Wed Apr 17 03:05:21 2002 +++ phpdoc-it/reference/bzip2/functions/bzopen.xml Mon Jan 5 18:08:05 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bzip2.xml, last change in rev 1.1 --> <!-- last change to 'bzopen' in en/ tree in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.20/EN.1.1 --> <refentry id="function.bzopen"> <refnamediv> @@ -17,8 +17,8 @@ </methodsynopsis> <para> Apre un file bzip2 (.bz2) in lettura o scrittura. - <parameter>nomefile</parameter> è il nome del file da - aprire. Il parametro <parameter>modo</parameter> egrave; simile a quello + <parameter>nomefile</parameter> è il nome del file da + aprire. Il parametro <parameter>modo</parameter> è simile a quello della funzione <function>fopen</function> (`r' per lettura, `w' per scrittura, ecc.). </para> <para> @@ -31,13 +31,12 @@ <programlisting role="php"> <![CDATA[ <?php -$bz = bzopen("/tmp/foo.bz2", "r"); -$file_decompresso = bzread($bz, filesize("/tmp/foo.bz2")); + +$file = "/tmp/foo.bz2"; +$bz = bzopen($file, "r") or die("non sono riuscito ad aprire in lettura $file"); + bzclose($bz); -print( "Il contenuto di /tmp/foo.bz2 è: " ); -print( "\n<br>n" ); -print( $file_decompresso ); ?> ]]> </programlisting>