cvs: phpdoc-es / translation.xml /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml copy.xml delete.xml
dirname.xml diskfreespace.xml fclose.xml feof.xml fgetc.xml fgetcsv.xml fputcsv.xml link.xml linkinfo.xml mkdir.xml readlink.xml rmdir.xml symlink.xml
umask.xml

From: Date: Thu, 10 Mar 2005 18:00:51 +0000
Subject: cvs: phpdoc-es / translation.xml /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml copy.xml delete.xml
dirname.xml diskfreespace.xml fclose.xml feof.xml fgetc.xml fgetcsv.xml fputcsv.xml link.xml linkinfo.xml mkdir.xml readlink.xml rmdir.xml symlink.xml
umask.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-771@lists.php.net to get a copy of this message
baoengb Thu Mar 10 13:00:51 2005 EDT Added files: /phpdoc-es/reference/filesystem/functions fputcsv.xml Modified files: /phpdoc-es translation.xml /phpdoc-es/reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml copy.xml delete.xml dirname.xml diskfreespace.xml fclose.xml feof.xml fgetc.xml fgetcsv.xml link.xml linkinfo.xml mkdir.xml readlink.xml rmdir.xml symlink.xml umask.xml Log: - Adoptando archivos de filesystem - Traduccion del fputcsv.xml

http://cvs.php.net/diff.php/phpdoc-es/translation.xml?r1=1.188&r2=1.189&ty=u Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.188 phpdoc-es/translation.xml:1.189 --- phpdoc-es/translation.xml:1.188 Tue Mar 1 17:39:48 2005 +++ phpdoc-es/translation.xml Thu Mar 10 13:00:50 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.188 $ --> +<!-- $Revision: 1.189 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -118,48 +118,5 @@ <file name="reference/pcntl/functions/pcntl-wtermsig.xml" person="jtacon" type="translation" date="17.12.2004"/> - <file name="reference/filesystem/functions/basename.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/chgrp.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/chmod.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/chown.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/clearstatcache.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/copy.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/delete.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/dirname.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/diskfreespace.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/fclose.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/feof.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/fgetc.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/fgetcsv.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/link.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/linkinfo.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/mkdir.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/readlink.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/rmdir.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/symlink.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/umask.xml" - person="baoengb" type="review" date="16.02.2005"/> - <file name="reference/filesystem/functions/fputcsv.xml" - person="baoengb" type="translation" date="16.02.2005"/> - </work-in-progress> </translation> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/basename.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/basename.xml diff -u phpdoc-es/reference/filesystem/functions/basename.xml:1.2 phpdoc-es/reference/filesystem/functions/basename.xml:1.3 --- phpdoc-es/reference/filesystem/functions/basename.xml:1.2 Wed Feb 23 14:02:58 2005 +++ phpdoc-es/reference/filesystem/functions/basename.xml Thu Mar 10 13:00:50 2005 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.basename"> <refnamediv> <refname>basename</refname> <refpurpose> - Devuelve la parte del path correspondiente al nombre del fichero + Devuelve la parte del path correspondiente al nombre del archivo </refpurpose> </refnamediv> <refsect1> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/chgrp.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/chgrp.xml diff -u phpdoc-es/reference/filesystem/functions/chgrp.xml:1.2 phpdoc-es/reference/filesystem/functions/chgrp.xml:1.3 --- phpdoc-es/reference/filesystem/functions/chgrp.xml:1.2 Wed Feb 23 14:02:58 2005 +++ phpdoc-es/reference/filesystem/functions/chgrp.xml Thu Mar 10 13:00:50 2005 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> -<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.chgrp"> <refnamediv> <refname>chgrp</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/chmod.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/chmod.xml diff -u phpdoc-es/reference/filesystem/functions/chmod.xml:1.2 phpdoc-es/reference/filesystem/functions/chmod.xml:1.3 --- phpdoc-es/reference/filesystem/functions/chmod.xml:1.2 Wed Feb 23 14:02:59 2005 +++ phpdoc-es/reference/filesystem/functions/chmod.xml Thu Mar 10 13:00:50 2005 @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.chmod"> <refnamediv> <refname>chmod</refname> - <refpurpose>Cambia permisos de un fichero</refpurpose> + <refpurpose>Cambia permisos de un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -23,7 +23,9 @@ Note que <parameter>modo</parameter> no es asumido de forma autom&aacute;tica como un valor octal. Para asegurar que se hace la operaci&oacute;n esperada necesitas anteponer un cero (0) como prefijo - del par&aacute;metro <parameter>mode</parameter>: + del par&aacute;metro <parameter>modo</parameter>: + </para> + <para> <informalexample> <programlisting role="php"> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/chown.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/chown.xml diff -u phpdoc-es/reference/filesystem/functions/chown.xml:1.2 phpdoc-es/reference/filesystem/functions/chown.xml:1.3 --- phpdoc-es/reference/filesystem/functions/chown.xml:1.2 Wed Feb 23 14:02:59 2005 +++ phpdoc-es/reference/filesystem/functions/chown.xml Thu Mar 10 13:00:51 2005 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> -<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.chown"> <refnamediv> <refname>chown</refname> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/clearstatcache.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/clearstatcache.xml diff -u phpdoc-es/reference/filesystem/functions/clearstatcache.xml:1.2 phpdoc-es/reference/filesystem/functions/clearstatcache.xml:1.3 --- phpdoc-es/reference/filesystem/functions/clearstatcache.xml:1.2 Wed Feb 23 14:02:59 2005 +++ phpdoc-es/reference/filesystem/functions/clearstatcache.xml Thu Mar 10 13:00:51 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready --> <!-- split from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.clearstatcache"> @@ -11,7 +11,7 @@ <title>Descripci&oacute;n</title> <methodsynopsis> <type>void</type><methodname>clearstatcache</methodname> - <void/> + <void /> </methodsynopsis> <para> Cuando se usa <function>stat</function>, <function>lstat</function>, o @@ -35,7 +35,7 @@ </para> <note> <para> - Esta funci&oacute;n pone en cahce informaci&oacute;n acerca de nombres + Esta funci&oacute;n pone en cache informaci&oacute;n acerca de nombres de archivo especificos, de tal forma que solo necesita ejecutar <function>clearstatcache</function> si est&aacute; elaborando operaciones m&uacute;ltiples sobre el mismo archivo y necesita que la informaci&oacute;n http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/copy.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/copy.xml diff -u phpdoc-es/reference/filesystem/functions/copy.xml:1.2 phpdoc-es/reference/filesystem/functions/copy.xml:1.3 --- phpdoc-es/reference/filesystem/functions/copy.xml:1.2 Wed Feb 23 14:02:59 2005 +++ phpdoc-es/reference/filesystem/functions/copy.xml Thu Mar 10 13:00:51 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.copy"> @@ -11,12 +11,12 @@ <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>copy</methodname> - <methodparam><type>string</type><parameter>source</parameter></methodparam> - <methodparam><type>string</type><parameter>dest</parameter></methodparam> + <methodparam><type>string</type><parameter>origen</parameter></methodparam> + <methodparam><type>string</type><parameter>destino</parameter></methodparam> </methodsynopsis> <para> - Hace una copia de <parameter>source</parameter> a - <parameter>dest</parameter>. &return.success; + Hace una copia de <parameter>origen</parameter> a + <parameter>destino</parameter>. &return.success; <example> <title>Ejemplo de <function>copy</function></title> <programlisting role="php"> @@ -38,10 +38,10 @@ </para> <note> <para> - Desde PHP 4.3.0, los par&aacute;metros <parameter>source</parameter> y - <parameter>dest</parameter> pueden ser ULRs si se ha habilitado la + Desde PHP 4.3.0, los par&aacute;metros <parameter>origen</parameter> y + <parameter>destino</parameter> pueden ser ULRs si se ha habilitado la opci&oacute;n "fopen wrappers". Vea <function>fopen</function> para - m&aacute;s detalles. Si <parameter>dest</parameter> es una URL, la + m&aacute;s detalles. Si <parameter>destino</parameter> es una URL, la operaci&oacute;n de copiado puede fallar si el empaquetador o wrapper no soporta la sobreescritura de archivos existentes. </para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/delete.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/delete.xml diff -u phpdoc-es/reference/filesystem/functions/delete.xml:1.1 phpdoc-es/reference/filesystem/functions/delete.xml:1.2 --- phpdoc-es/reference/filesystem/functions/delete.xml:1.1 Sun Apr 14 20:13:52 2002 +++ phpdoc-es/reference/filesystem/functions/delete.xml Thu Mar 10 13:00:51 2005 @@ -1,19 +1,20 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'delete' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.delete"> <refnamediv> <refname>delete</refname> - <refpurpose>Una entrada manual in&uacute;til</refpurpose> + <refpurpose>Vea <function>unlink</function> o <function>unset</function></refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>void</type><methodname>delete</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> + <methodparam><type>string</type><parameter>archivo</parameter></methodparam> </methodsynopsis> <para> - Esto es una entrada manual in&uacute;til para satisfacer a esas personas + Esto es una forma de satisfacer a esas personas que est&aacute;n buscando <function>unlink</function> o <function>unset</function> en el lugar equivocado.</para> <para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/dirname.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/dirname.xml diff -u phpdoc-es/reference/filesystem/functions/dirname.xml:1.1 phpdoc-es/reference/filesystem/functions/dirname.xml:1.2 --- phpdoc-es/reference/filesystem/functions/dirname.xml:1.1 Sun Apr 14 20:13:53 2002 +++ phpdoc-es/reference/filesystem/functions/dirname.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'dirname' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.dirname"> <refnamediv> <refname>dirname</refname> @@ -13,24 +14,65 @@ <methodparam><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> - Dada una cadena (string) conteniendo el path a un fichero, esta funci&oacute;n - devolver&aacute; el nombre del directorio.</para> + Dada una cadena conteniendo el path a un fichero, esta funci&oacute;n + devolver&aacute; el nombre del directorio. + </para> <para> En Windows, tanto la barra (<literal>/</literal>) como la barra inversa (<literal>\</literal>) son usadas como separadores de caracteres. En - otros entornos, debe usarse la barra directa - (<literal>/</literal>).</para> + otros entornos, debe usarse la barra directa (<literal>/</literal>). + </para> <para> <example> <title>Ejemplo de <function>dirname</function></title> <programlisting role="php"> +<![CDATA[ +<?php $path = "/etc/passwd"; -$file = dirname($path); // $file toma el valor "/etc" +$file = dirname($path); // $file is set to "/etc" +?> +]]> </programlisting> </example> </para> + <note> + <para> + En PHP 4.0.3, <function>dirname</function> fue corregida para cumplir con + POSIX. Esencialmente, esto significa que si no hay diagonales en + <parameter>path</parameter>, se regresa un punto ('<literal>.</literal>'), + indicando el directorio actual. De otra manera, la cadena regresada es + <parameter>path</parameter> con cualquier <literal>/component</literal> + removido. Note que esto significa que seguido obtendr&aacute; una + diagonal o punto en situaciones donde la funcionalidad anterior + le haya dado una cadena vac&iacute;a. + </para> + </note> + <para> + <function>dirname</function> ha cambiado su comportamiento en PHP 4.3.0. + Revise los siguiente ejemplos: + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php + +//before PHP 4.3.0 +dirname('c:/'); // returned '.' + +//after PHP 4.3.0 +dirname('c:/'); // returns 'c:' + +?> +]]> + </programlisting> + </informalexample> + </para> + <para> + <function>dirname</function> es segura con datos binarios desde PHP 5.0.0 + </para> <para> - Ver tambi&eacute;n: <function>basename</function> + Vea tambi&eacute;n <function>basename</function>, + <function>pathinfo</function> y + <function>realpath</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/diskfreespace.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/diskfreespace.xml diff -u phpdoc-es/reference/filesystem/functions/diskfreespace.xml:1.1 phpdoc-es/reference/filesystem/functions/diskfreespace.xml:1.2 --- phpdoc-es/reference/filesystem/functions/diskfreespace.xml:1.1 Sun Apr 14 20:13:53 2002 +++ phpdoc-es/reference/filesystem/functions/diskfreespace.xml Thu Mar 10 13:00:51 2005 @@ -1,30 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'diskfreespace' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.diskfreespace"> <refnamediv> <refname>diskfreespace</refname> - <refpurpose>Devuelve el espacio disponible en un directorio</refpurpose> + <refpurpose>Alias de <function>disk_free_space</function></refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> - <methodsynopsis> - <type>float</type><methodname>diskfreespace</methodname> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> <para> - Dada una cadena (string) conteniendo el nombre de un directorio, - esta funci&oacute;n devolver&aacute; el n&uacute;mero de bytes disponibles en el disco - correspondiente. - </para> - <para> - <example> - <title>Ejemplo de <function>diskfreespace</function></title> - <programlisting role="php"> -$df = diskfreespace("/"); // $df contiene el numero de bytes - // disponibles en "/" - </programlisting> - </example> + Esta funci&oacute;n es un alias de <function>disk_free_space</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fclose.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fclose.xml diff -u phpdoc-es/reference/filesystem/functions/fclose.xml:1.1 phpdoc-es/reference/filesystem/functions/fclose.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fclose.xml:1.1 Sun Apr 14 20:13:53 2002 +++ phpdoc-es/reference/filesystem/functions/fclose.xml Thu Mar 10 13:00:51 2005 @@ -1,28 +1,45 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fclose' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fclose"> <refnamediv> <refname>fclose</refname> - <refpurpose>Cierra el apuntador a un fichero abierto</refpurpose> + <refpurpose>Cierra el apuntador a un archivo abierto</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Descripci&oacute;on</title> <methodsynopsis> <type>int</type><methodname>fclose</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>int</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> - Se cierra el fichero apuntado por fp. + Se cierra el fichero apuntado por <parameter>handle</parameter>. </para> <para> - Devuelve &true; en caso de &eacute;xito y &false; en caso de fallo. + &return.success; </para> <para> El apuntador al fichero debe ser v&aacute;lido y debe apuntarse a un fichero abierto con &eacute;xito con <function>fopen</function> o con <function>fsockopen</function>. </para> + <para> + <example> + <title>Un ejemplo simple de <function>fclose</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + + $handle = fopen('somefile.txt', 'r'); + + fclose($handle); + +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/feof.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/feof.xml diff -u phpdoc-es/reference/filesystem/functions/feof.xml:1.1 phpdoc-es/reference/filesystem/functions/feof.xml:1.2 --- phpdoc-es/reference/filesystem/functions/feof.xml:1.1 Sun Apr 14 20:13:54 2002 +++ phpdoc-es/reference/filesystem/functions/feof.xml Thu Mar 10 13:00:51 2005 @@ -1,27 +1,34 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'feof' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.feof"> <refnamediv> <refname>feof</refname> - <refpurpose>Verifica si el apuntador a un fichero est&aacute; al final del fichero (end-of-file)</refpurpose> + <refpurpose>Verifica si el apuntador a un archivo est&aacute; al final del + archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>feof</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>int</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> Devuelve &true; si el apuntador del fichero est&aacute; en EOF o si ocurre - un error; en otro caso devuelve &false;. - </para> - <para> - The file pointer must be valid, and must point to a file - El apuntador al fichero debe ser v&aacute;lido, y debe apuntar a un - fichero abierto con &eacute;xito por <function>fopen</function>, - <function>popen</function>, o <function>fsockopen</function>. + un error (incluyendo tiempo de espera agotado); en otro caso devuelve + &false;. </para> + <warning> + <simpara> + Si una conexi&oacute;n abierta por <function>fsockopen</function> no + fue cerrada por el servidor, <function>feof</function> esperar&aacute; + hasta que ocurra un tiempo de espera agotado para regresar &true;. + El tiempo de espera por default es 60 segundos. Puede usar + <function>stream_set_timeout</function> para cambiar este valor. + </simpara> + </warning> + &fs.validfp.all; </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fgetc.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/fgetc.xml diff -u phpdoc-es/reference/filesystem/functions/fgetc.xml:1.1 phpdoc-es/reference/filesystem/functions/fgetc.xml:1.2 --- phpdoc-es/reference/filesystem/functions/fgetc.xml:1.1 Sun Apr 14 20:13:54 2002 +++ phpdoc-es/reference/filesystem/functions/fgetc.xml Thu Mar 10 13:00:51 2005 @@ -1,28 +1,50 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fgetc' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fgetc"> <refnamediv> <refname>fgetc</refname> - <refpurpose>Obtiene un caracter del fichero apuntado</refpurpose> + <refpurpose>Obtiene un caracter del archivo apuntado</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>fgetc</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> - Devuelve una cadena (string) conteniendo un simple caracter - leido del fichero apuntado por fp. Devuelve &false; para EOF - (como hace <function>feof</function>).</para> + Devuelve una cadena conteniendo un simple caracter + le&iacute;do del archivo apuntado por <parameter>handle</parameter>. + Devuelve &false; para EOF + </para> + + &fs.validfp.all; + &return.falseproblem; + <para> - El apuntador al fichero debe ser valido, y debe apuntar a un - fichero abierto con &eacute;xito por <function>fopen</function>, - <function>popen</function>, o <function>fsockopen</function>. + <example> + <title>Un ejemplo de <function>fgetc</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$fp = fopen('somefile.txt', 'r'); +if (!$fp) { + echo 'Could not open file somefile.txt'; +} +while (false !== ($char = fgetc($fp))) { + echo "$char\n"; +} +?> +]]> + </programlisting> + </example> </para> + + &note.bin-safe; + <para> - Ver tambi&eacute;n <function>fread</function>, <function>fopen</function>, + Vea tambi&eacute; <function>fread</function>, <function>fopen</function>, <function>popen</function>, <function>fsockopen</function>, y <function>fgets</function>. </para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/fgetcsv.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/fgetcsv.xml diff -u phpdoc-es/reference/filesystem/functions/fgetcsv.xml:1.2 phpdoc-es/reference/filesystem/functions/fgetcsv.xml:1.3 --- phpdoc-es/reference/filesystem/functions/fgetcsv.xml:1.2 Tue Jun 24 22:09:38 2003 +++ phpdoc-es/reference/filesystem/functions/fgetcsv.xml Thu Mar 10 13:00:51 2005 @@ -1,68 +1,119 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'fgetcsv' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.17 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fgetcsv"> <refnamediv> <refname>fgetcsv</refname> - <refpurpose> - Obtiene una l&iacute;nea del fichero apuntado y extrae los campos CSV - </refpurpose> + <refpurpose>Obtiene una linea del archivo apuntado y extrae los campos CSV</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>array</type><methodname>fgetcsv</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> - <methodparam><type>int</type><parameter>length</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - delimiter - </parameter></methodparam> + <type>array</type><methodname>fgetcsv</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>enclosure</parameter></methodparam> </methodsynopsis> + + <para> + <variablelist> + <varlistentry> + <term><parameter>handle</parameter></term> + <listitem> + <simpara> + Un apuntador de archivo v&aacute;lido abierto exitosamente por + <function>fopen</function>, <function>popen</function>, o + <function>fsockopen</function>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>length</parameter> (Optional)</term> + <listitem> + <simpara> + Debe ser mayor que la l&iacute;nea m&aacute;s grande (en caracteres) + a ser encontrada en el archivo CSV (permitiendo los caracteres de + fin de l&iacute;nea). Se volvi&oacute; opcional en PHP 5. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>delimiter</parameter> (Optional)</term> + <listitem> + <simpara> + Fija el delimitador del campo (s&oacute;lo un caracter). El valor + por defecto es la coma. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>enclosure</parameter> (Optional)</term> + <listitem> + <simpara> + Fija el caracter de delimitaci&oacute;n (s&oacute;lo un caracter). + El caracter por defecto son las dobles comillas. Agregado en PHP 4.3.0. + </simpara> + </listitem> + </varlistentry> + </variablelist> + </para> + <simpara> - Parecida a fgets() excepto que fgetcsv() parsea la l&iacute;nea que lee - buscando campos en formato CSV y devuelve un array conteniendo los - campos leidos. El delimitador de campo es una coma, a menos que se - especifique otro delimitador con el tercer par&aacute;metro opcional. - </simpara> - <simpara> - fp debe ser un apuntador v&aacute;lido a un fichero abierto con &eacute;xito por - <function>fopen</function>, <function>popen</function>, o - <function>fsockopen</function> - </simpara> - <simpara> - la longitud debe ser mayor que la l&iacute;nea m&aacute;s larga que pueda encontrarse - en le fichero CSV (permitiendo arrastrar caracteres de fin de l&iacute;nea) - </simpara> - <simpara> - fgetcsv() devuelve &false; en caso de error, incluyendo el fin de fichero. + Similar a <function>fgets</function> excepto en el formato + <acronym>CSV</acronym> y regresa una matriz conteniendo los + campos le&iacute;dos. </simpara> <simpara> - NOTA: Una l&iacute;nea en blanco en un fichero CSV se devuelve como un array - que contiene un &uacute;nico campo nulo, y esto no ser&aacute; tratado como un error. + <function>fgetcsv</function> regresa &false; en error, incluyendo fin de + archivo. </simpara> - <example> - <title> - Ejemplo de <function>fgetcsv</function> - Leer e imprimir el contenido - completo de un fichero CSV - </title> - <programlisting role="php"> + <note> + <simpara> + Una l&iacute;nea en blanco en un archivo CSV ser&aacute; regresada como + una matriz que contiene un campo <type>null</type>, y no ser&acute; + tratada como error. + </simpara> + </note> + <para> + <example> + <title>Lee e imprime todo el contenido del archivo CSV</title> + <programlisting role="php"> <![CDATA[ <?php $row = 1; -$fp = fopen ("test.csv","r"); -while ($data = fgetcsv ($fp, 1000, ",")) { - $num = count ($data); - print "<p> $num fields in line $row: <br />"; +$handle = fopen("test.csv", "r"); +while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { + $num = count($data); + echo "<p> $num fields in line $row: <br /></p>\n"; $row++; - for ($c=0; $c<$num; $c++) { - print $data[$c] . "<br />"; + for ($c=0; $c < $num; $c++) { + echo $data[$c] . "<br />\n"; } } -fclose ($fp); +fclose($handle); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> + <para> + <function>fgetcsv</function> es seguro en forma binaria desde PHP 4.3.5 + </para> + <note> + <simpara> + Las opciones locales son tomadas en cuenta por esta funci&oacute;n. + Si <varname>LANG</varname> es por ejemplo <literal>en_US.UTF-8</literal>, + los archivos codificados en one-byte ser&aacute;n le&iacute;dos + equivocadamente por est&aacute; funci&oacute;n. + </simpara> + </note> + &note.line-endings; + <para> + Vea tambi&eacute;n <function>explode</function>, <function>file</function>, + <function>pack</function> y <function>fputcsv</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/link.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/link.xml diff -u phpdoc-es/reference/filesystem/functions/link.xml:1.1 phpdoc-es/reference/filesystem/functions/link.xml:1.2 --- phpdoc-es/reference/filesystem/functions/link.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/link.xml Thu Mar 10 13:00:51 2005 @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'link' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.link"> <refnamediv> <refname>link</refname> - <refpurpose>Crea un enlace fuerte</refpurpose> + <refpurpose>Crea un enlace duro</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -14,9 +15,14 @@ <methodparam><type>string</type><parameter>link</parameter></methodparam> </methodsynopsis> <para> - <function>link</function> crea un enlace fuerte.</para> + <function>link</function> crea un enlace duro. &return.success; + </para> + + &note.no-remote; + &note.no-windows; + <para> - Ver tambi&eacute;n <function>symlink</function> para crear enlaces d&eacute;biles, + Ver tambi&eacute;n <function>symlink</function> para crear enlaces suaves, y <function>readlink</function> junto con <function>linkinfo</function>. </para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/linkinfo.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/linkinfo.xml diff -u phpdoc-es/reference/filesystem/functions/linkinfo.xml:1.1 phpdoc-es/reference/filesystem/functions/linkinfo.xml:1.2 --- phpdoc-es/reference/filesystem/functions/linkinfo.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/linkinfo.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'linkinfo' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.linkinfo"> <refnamediv> <refname>linkinfo</refname> @@ -13,14 +14,29 @@ <methodparam><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> - <function>linkinfo</function> da el campo st_dev de la - extructura stat de UNIX C devuelto por la llamada al sistema lstat. - Esta funci&oacute;n se usa para verificar si un enlace (apuntado por - <parameter>path</parameter>) existe realmente (usando el mismo m&eacute;todo - que la macro S_ISLNK definida en stat.h). Devuelve 0 o &false; en - caso de error. + <function>linkinfo</function> da el campo <literal>st_dev</literal> de la + extructura stat de UNIX C devuelto por la llamada al sistema + <literal>lstat</literal>. Esta funci&oacute;n se usa para verificar si un + enlace (apuntado por <parameter>path</parameter>) existe realmente (usando + el mismo m&eacute;todo que la macro S_ISLNK definida en stat.h). Devuelve 0 + o &false; en caso de error. </para> <para> + <example> + <title>Ejemplo de<function>linkinfo</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo linkinfo('/vmlinuz'); // 835 + +?> +]]> + </programlisting> + </example> + </para> + &note.no-windows; + <para> Ver tambi&eacute;n <function>symlink</function>, <function>link</function>, y <function>readlink</function>. </para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/mkdir.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/mkdir.xml diff -u phpdoc-es/reference/filesystem/functions/mkdir.xml:1.1 phpdoc-es/reference/filesystem/functions/mkdir.xml:1.2 --- phpdoc-es/reference/filesystem/functions/mkdir.xml:1.1 Sun Apr 14 20:13:59 2002 +++ phpdoc-es/reference/filesystem/functions/mkdir.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'mkdir' in en/ tree in rev 1.39 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.16 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.39 --> <refentry id="function.mkdir"> <refnamediv> <refname>mkdir</refname> @@ -9,25 +10,61 @@ <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>mkdir</methodname> - <methodparam><type>string</type><parameter>pathname</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> + <type>bool</type><methodname>mkdir</methodname> + <methodparam><type>string</type><parameter>pathname</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>recursive</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> </methodsynopsis> <para> Trata de crear el directorio especificado por pathname. </para> <para> Ten en cuenta que debes especifiar el modo como un n&uacute;mero octal, - lo que significa que debes anteponerle un 0 al n&uacute;mero. - <informalexample> + lo que significa que debes anteponerle un 0 al n&uacute;mero. el + modo tambi&eacute;n es modificado por el valor acutal de "umask", el + cu&aacute;l se puede cambiar usando <function>umask</function>. + </para> + <para> + <note> + <para> + El modo es ignorado en Windows, y se hizo opcional en PHP 4.2.0. + </para> + </note> + </para> + <para> + El modo es 0777 por defecto, lo cual significa el acceso m&aacute;s + amplio posible. Para mas informaci&oacute;n de los modos, lea mas detalles + en la p&aacute;gina <function>chmod</function>. + <example> + <title>ejemplo de <function>mkdir</function></title> <programlisting role="php"> -mkdir ("/path/to/my/dir", 0700); +<![CDATA[ +<?php +mkdir("/path/to/my/dir", 0700); +?> +]]> </programlisting> - </informalexample> + </example> </para> <para> - Devuelve &true; en caso de &eacute;xito y &false; en caso de fallo. + &return.success; </para> + <note> + <simpara> + Desde PHP 5.0.0 <function>mkdir</function> tambi&eacute;n puede ser + usada con <emphasis>algunos</emphasis> empaquetadores de URL. Vea + <xref linkend="wrappers"/> para una lista de cuales empaquetadores son + soportados <function>mkdir</function>. + </simpara> + </note> + <note> + <simpara> + Los par&aacute;metros <parameter>recursive</parameter> y + <parameter>context</parameter> fueron agregados desde PHP 5.0.0. + </simpara> + </note> + &note.sm.uidcheck.dir; <para> Ver tambi&eacute;n <function>rmdir</function>. </para> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/readlink.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/readlink.xml diff -u phpdoc-es/reference/filesystem/functions/readlink.xml:1.1 phpdoc-es/reference/filesystem/functions/readlink.xml:1.2 --- phpdoc-es/reference/filesystem/functions/readlink.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/readlink.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'readlink' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.readlink"> <refnamediv> <refname>readlink</refname> @@ -14,9 +15,25 @@ </methodsynopsis> <para> <function>readlink</function> hace lo mismo que la funci&oacute;n C - readlink C y devuelve el contenido del path del enlace simb&oacute;lico + readlink y devuelve el contenido del path del enlace simb&oacute;lico o 0 en caso de error. </para> + <para> + <example> + <title>Ejemplo de <function>readlink</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// output e.g. /boot/vmlinux-2.4.20-xfs +echo readlink('/vmlinuz'); + +?> +]]> + </programlisting> + </example> + </para> + &note.no-windows; <para> Ver tambi&eacute;n <function>symlink</function>, <function>readlink</function> y http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/rmdir.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/rmdir.xml diff -u phpdoc-es/reference/filesystem/functions/rmdir.xml:1.1 phpdoc-es/reference/filesystem/functions/rmdir.xml:1.2 --- phpdoc-es/reference/filesystem/functions/rmdir.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/rmdir.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'rmdir' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.rmdir"> <refnamediv> <refname>rmdir</refname> @@ -11,16 +12,30 @@ <methodsynopsis> <type>int</type><methodname>rmdir</methodname> <methodparam><type>string</type><parameter>dirname</parameter></methodparam> - </methodsynopsis> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> + </methodsynopsis> <para> - Trata de eliminar el directorio indicado por pathname. El directorio - debe estar vacio, y los permisos relevantes deben permitir esto. + Trata de eliminar el directorio indicado por <parameter>dirname</parameter>. + El directorio debe estar vacio, y los permisos relevantes deben permitir esto. + &return.success; </para> - <para> - Si ocurre un error, devuelve 0. - </para> + <note> + <simpara> + Desde PHP 5.0.0 <function>rmdir</function> tambi&eacute;n puede ser + usada con <emphasis>algunos</emphasis> URL empaquetados. Para una lista de + los empaquetadores que son soportados por <function>rmdir</function> + refierase a <xref linkend="wrappers"/>. + </simpara> + </note> + <note> + <simpara> + El par&aacute;metro <parameter>context</parameter> fue agregado desde + PHP 5.0.0. + </simpara> + </note> + &note.sm.uidcheck.dir; <para> - Ver tambi&eacute;n <function>mkdir</function>. + Vea tambi&eacute;n <function>mkdir</function> y <function>unlink</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/symlink.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/filesystem/functions/symlink.xml diff -u phpdoc-es/reference/filesystem/functions/symlink.xml:1.1 phpdoc-es/reference/filesystem/functions/symlink.xml:1.2 --- phpdoc-es/reference/filesystem/functions/symlink.xml:1.1 Sun Apr 14 20:14:00 2002 +++ phpdoc-es/reference/filesystem/functions/symlink.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'symlink' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.symlink"> <refnamediv> <refname>symlink</refname> @@ -19,6 +20,10 @@ nombre especificado por <parameter>link</parameter>. </para> <para> + &return.success; + </para> + &note.no-windows; + <para> Ver tambi&eacute;n <function>link</function> para crear enlaces fuertes, y <function>readlink</function> junto con <function>linkinfo</function>. http://cvs.php.net/diff.php/phpdoc-es/reference/filesystem/functions/umask.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/filesystem/functions/umask.xml diff -u phpdoc-es/reference/filesystem/functions/umask.xml:1.2 phpdoc-es/reference/filesystem/functions/umask.xml:1.3 --- phpdoc-es/reference/filesystem/functions/umask.xml:1.2 Tue Jun 24 22:09:38 2003 +++ phpdoc-es/reference/filesystem/functions/umask.xml Thu Mar 10 13:00:51 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'umask' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.umask"> <refnamediv> <refname>umask</refname> @@ -10,7 +11,7 @@ <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>umask</methodname> - <methodparam><type>int</type><parameter>mask</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mask</parameter></methodparam> </methodsynopsis> <para> <function>umask</function> fija las umask PHP con la mascara &amp; 0777 y http://cvs.php.net/co.php/phpdoc-es/reference/filesystem/functions/fputcsv.xml?r=1.1&p=1 Index: phpdoc-es/reference/filesystem/functions/fputcsv.xml +++ phpdoc-es/reference/filesystem/functions/fputcsv.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: baoengb Status: ready --> <refentry id="function.fputcsv"> <refnamediv> <refname>fputcsv</refname> <refpurpose> Formatea la l&iacute;nea como CSV y la escribe en el archivo apuntado</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>int</type><methodname>fputcsv</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>fields</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>enclosure</parameter></methodparam> </methodsynopsis> <para> <function>fputcsv</function> da formato a l&iacute;nea (pasada como matriz en <parameter>fields</parameter>) como CSV y la escribe en el archivo especificado por <parameter>handle</parameter>. Regresa la longitud de la cadena escrita, o &false; en caso de falla. </para> <para> El par&aacute;metro opcional <parameter>delimiter</parameter> fija el delimitador de campo (s&oacute;lo un caracter). Por defecto es una coma: <literal>,</literal>. </para> <para> El par&aacute;metro opcional <parameter>enclosure</parameter> fija el empaquetador del campo (s&oacute;lo un caracter) y el valor por defecto son las dobles comillas <literal>"</literal>. </para> <para> <example> <title>Ejemplo de <function>fputcsv</function></title> <programlisting role="php"> <![CDATA[ <?php $list = array ( 'aaa,bbb,ccc,dddd', '123,456,789', '"aaa","bbb"' ); $fp = fopen('file.csv', 'w'); foreach ($list as $line) { fputcsv($fp, split(',', $line)); } fclose($fp); ?> ]]> </programlisting> </example> </para> &note.line-endings; <para> Vea tambi&eacute;n <function>fgetcsv</function>. </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:"../../../../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 -->
« previous php.doc.es (#771) next »