cortesi Wed Nov 28 19:07:37 2001 EDT Modified files: /phpdoc/it Translators /phpdoc/it/functions dir.xml Log: update in sync with EN Index: phpdoc/it/Translators diff -u phpdoc/it/Translators:1.97 phpdoc/it/Translators:1.98 --- phpdoc/it/Translators:1.97 Sun Nov 25 10:43:12 2001 +++ phpdoc/it/Translators Wed Nov 28 19:07:37 2001 @@ -96,7 +96,7 @@ dbm.xml dbplus.xml dbx.xml -dir.xml cortesi T1.23 +dir.xml cortesi T1.26 domxml.xml errorfunc.xml exec.xml @@ -132,10 +132,10 @@ misc.xml mnogosearch.xml msql.xml -mssql.xml darvin T1.15 +mssql.xml darvin T1.22 mysql.xml damico A1.75 network.xml valente A1.44 -nis,xml +nis.xml oci8.xml cucinato T1.36 openssl.xml oracle.xml cucinato T1.24 Index: phpdoc/it/functions/dir.xml diff -u phpdoc/it/functions/dir.xml:1.9 phpdoc/it/functions/dir.xml:1.10 --- phpdoc/it/functions/dir.xml:1.9 Sat Nov 10 16:50:02 2001 +++ phpdoc/it/functions/dir.xml Wed Nov 28 19:07:37 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.23 Maintainer: cortesi Status: ready --> +<!-- EN-Revision: 1.26 Maintainer: cortesi Status: ready --> <reference id="ref.dir"> <title>Funzioni per le directory</title> <titleabbrev>Directory</titleabbrev> @@ -90,6 +90,7 @@ <example> <title>esempio <function>dir</function></title> <programlisting role="php"> +<![CDATA[ $d = dir("/etc"); echo "Handle: ".$d->handle."<br>\n"; echo "Path: ".$d->path."<br>\n"; @@ -97,6 +98,7 @@ echo $entry."<br>\n"; } $d->close(); +]]> </programlisting> </example> </para> @@ -106,7 +108,7 @@ <refentry id="function.closedir"> <refnamediv> <refname>closedir</refname> - <refpurpose>chiude l'handle della directoty</refpurpose> + <refpurpose>chiude l'handle della directory</refpurpose> </refnamediv> <refsect1> <title>Descrizione</title> @@ -173,7 +175,8 @@ <example> <title>esempio <function>opendir</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php if ($dir = @opendir("/tmp")) { while (($file = readdir($dir)) !== false) { @@ -182,7 +185,8 @@ closedir($dir); } -?> +?> +]]> </programlisting> </example> </para> @@ -208,8 +212,9 @@ <example> <title>Elenca tutti i file presenti nella directory in uso</title> <programlisting role="php"> -// Nota che l'operatore !== non è esistito fino alla versione 4.0.0-RC2 -<?php +<![CDATA[ +// Nota che l'operatore !== non č esistito fino alla versione 4.0.0-RC2 +<?php $handle=opendir('.'); echo "Handle della directory: $handle\n"; echo "File:\n"; @@ -217,13 +222,15 @@ echo "$file\n"; } closedir($handle); -?> +?> +]]> </programlisting> </example> </para> <para> - Nota che <function>readdir</function> restituirà le voci <literal>.</literal> - e <literal>..</literal>. Se non si vogliono ottenere queste, si possono semplicemente + Nota che <function>readdir</function> restituirā le voci <literal>.</literal> + e + <literal>..</literal>. Se non si vogliono ottenere queste, si possono +semplicemente eliminare: <example> <title> @@ -231,15 +238,17 @@ e <literal>..</literal> </title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $handle = opendir('.'); while (false !== ($file = readdir($handle))) { - if ($file != "." && $file != "..") { + if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); -?> +?> +]]> </programlisting> </example> </para>