cvs: peardoc /es/core/pear/system cat.xml intro.xml mkdir.xml mktemp.xml rm.xml tmpdir.xml which.xml

From: Date: Thu, 24 Jun 2004 14:22:32 +0000
Subject: cvs: peardoc /es/core/pear/system cat.xml intro.xml mkdir.xml mktemp.xml rm.xml tmpdir.xml which.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4484@lists.php.net to get a copy of this message
kusor Thu Jun 24 10:22:32 2004 EDT Added files: /peardoc/es/core/pear/system cat.xml intro.xml mkdir.xml mktemp.xml rm.xml tmpdir.xml which.xml Log: First Spanish Translation

http://cvs.php.net/co.php/peardoc/es/core/pear/system/cat.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/cat.xml +++ peardoc/es/core/pear/system/cat.xml <!-- EN-Revision: 1.4 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.cat"> <refnamediv> <refname>System::&amp;cat</refname> <refpurpose>concatena archivos</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "System.php"; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>System::&amp;cat</function></funcdef> <paramdef> string <parameter>$args</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.system.cat.desc"> &title.desc; <para> Concatena archivos. El m&eacute;todo usa <function>fopen</function>, Las URLs deber&iacute;an funcionar tambi&eacute;n. </para> </refsect1> <refsect1 id="core.pear.system.cat.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $args</parameter> - los argumentos </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.system.cat.return"> &title.returns; <para> <parameter>boolean</parameter> - &true; si se tiene &eacute;xito </para> </refsect1> <refsect1 id="core.pear.system.cat.note"> &title.note; &note.canstatic; <simpara></simpara> </refsect1> <refsect1 id="core.pear.system.cat.see"> &title.see; <para> <ulink url="&url.man;cat">p&aacute;gina man de<command>cat</command></ulink> </para> </refsect1> <refsect1 id="core.pear.system.cat.example"> &title.example; <example> <title>Using <function>&amp;cat</function></title> <programlisting role="php"> <![CDATA[ $var = System::cat('sample.txt test.txt'); System::cat('sample.txt test.txt > final.txt'); System::cat('sample.txt test.txt >> final.txt'); ]]> </programlisting> </example> </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 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 --> http://cvs.php.net/co.php/peardoc/es/core/pear/system/intro.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/intro.xml +++ peardoc/es/core/pear/system/intro.xml <!-- EN-Revision: 1.4 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.intro"> <refnamediv> <refname>Introducci&oacute;n</refname> <refpurpose>Informaciones generales de uso</refpurpose> </refnamediv> <refsect1 id="core.pear.system.intro.clistyle"> <title>Estilo de la l&iacute;nea de comandos</title> <para> Las funciones <classname>System</classname> se llaman como los respectivos comandos de la l&iacute;nea de comandos <programlisting role="php"> <![CDATA[ if (!System::rm('-r file1 dir1')) { print "Could not delete all the files"; } ]]> </programlisting> Los argumentos de las funciones pueden ser introducidos como una cadena o como un array: <programlisting role="php"> System::rm(array('-r', 'file1', 'dir1')); </programlisting> System trabaja como cualquier otra funci&oacute;n de PHP y devolver&aacute; <parameter>FALSE</parameter>, cuando la operaci&oacute;n no pueda ser completada total o parcialmente. System no se detendr&aacute; cuando encuentre un error, sino que tratar&aacute; de continuar. Por ejemplo, si est&aacute;s tratrando de borrar tres archivos y el primero de ellos no puede ser borrado, los dos siguientes ser&aacute;n borrados pero la funci&oacute;n devolver&aacute; <parameter>FALSE</parameter>. </para> <para> Los errores ser&aacute;n impresos usando la funci&oacute;n de PHP <function>trigger_error()</function> por lo que todos los m&eacute;todos de System pueden ser silenciados colocando el prefijo '@' delante de la llamada a l afunci&oacute;n (por ejemplo: <command>@System::mkdir('-p dir1/dir2/dir3');</command>). </para> </refsect1> <refsect1 id="core.pear.system.intro.compatibility"> <title>Compatibilidad</title> <para> <classname>System</classname> proporciona funciones del sistema de archivos. Se llaman como los comandos del sistema de archivos en sistemas Unix y soportan las mismas opciones <emphasis>independientemente</emphasis> del sistema en que se est&eacute;n ejecutando. </para> <para> En este momentos, las funciones han sido testadas en Linux y Windows. Comentarios adicionales sobre compatibilidad en otros sistemas son bienvenidos. </para> <warning> <para> En las primeras versiones de PHP 4, <function>unlink</function> puede fallar en Windows. Este bug est&aacute; corregido en las versiones actualizadas. </para> </warning> </refsect1> <refsect1 id="core.pear.system.intro.manpages"> <title>P&aacute;ginas Man</title> <para> Este manual describe los par&aacute;metros de las funciones de <classname>System</classname>, mayormente s&oacute;lo una cadena. Los argumentos y opciones del comando espec&iacute;fico <emphasis>no</emphasis> son documentadas en el manual. Por favor, echa un vistazo a las p&aacute;ginas man de sistemas estilo unix <programlisting> <command>man</command> <parameter>commandname</parameter> </programlisting> o cuando las p&aacute;ginas man no se encuentren disponibles en tu sistema visita <ulink url="&url.man.index;">las p&aacute;ginas del manual de UNIX on-line</ulink> </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 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 --> http://cvs.php.net/co.php/peardoc/es/core/pear/system/mkdir.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/mkdir.xml +++ peardoc/es/core/pear/system/mkdir.xml <!-- EN-Revision: 1.4 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.mkdir"> <refnamediv> <refname>System::mkDir</refname> <refpurpose>crea directorios</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "System.php"; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>System::mkDir</function></funcdef> <paramdef> string <parameter>$args</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.system.mkdir.desc"> &title.desc; <para> Crea directorios. </para> </refsect1> <refsect1 id="core.pear.system.mkdir.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $args</parameter> - el nombre del directorio(s) a crear </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.system.mkdir.return"> &title.returns; <para> <parameter>bool</parameter> - &true; si se tiene &eacute;xito </para> </refsect1> <refsect1 id="core.pear.system.mkdir.note"> &title.note; &note.canstatic; <simpara></simpara> </refsect1> <refsect1 id="core.pear.system.mkdir.see"> &title.see; <para> <ulink url="&url.man;mkdir">p&aacute;gina man de <command>mkdir</command></ulink> </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 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 --> http://cvs.php.net/co.php/peardoc/es/core/pear/system/mktemp.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/mktemp.xml +++ peardoc/es/core/pear/system/mktemp.xml <!-- EN-Revision: 1.5 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.mktemp"> <refnamediv> <refname>System::mktemp</refname> <refpurpose>Crea archivos o directorios temporales</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "System.php"; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>System::mktemp</function></funcdef> <paramdef> string <parameter><optional>$args = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.system.mktemp.desc"> &title.desc; <para> Crea archivos o directorios temporales. Esta funci&oacute;n eliminar&aacute; los archivos creados cuando el script finalize su ejecuci&oacute;n. </para> </refsect1> <refsect1 id="core.pear.system.mktemp.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $args</parameter> - TLos argumentos <itemizedlist> <listitem> <para> <parameter>prefix</parameter> - Cadena que se emplear&aacute; como prefijo del nombre temporal (por defecto <parameter>tmp</parameter>) </para> </listitem> <listitem> <para> <parameter>-d</parameter> - Se crear&aacute; un directorio temporal en lugar de un archivo. </para> </listitem> <listitem> <para> <parameter>-t</parameter> - El directorio de destino donde el archivo o directorio temporal ser&aacute; creado. Si se omite este par&aacute;metro, por defecto la variable de entorno <parameter>TMP</parameter> en Windows o <parameter>TMPDIR</parameter> en Unix ser&aacute; empleada. Si tampoco se encuentran dichas variables <parameter>c:\windows\temp</parameter> o <parameter>/tmp</parameter> ser&aacute;n empleados. </para> </listitem> </itemizedlist> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.system.mktemp.return"> &title.returns; <para> <parameter>mixed</parameter> - el path completo al archivo o directorio creado, o &false; </para> </refsect1> <refsect1 id="core.pear.system.mktemp.note"> &title.note; &note.canstatic; <simpara></simpara> </refsect1> <refsect1 id="core.pear.system.mktemp.see"> &title.see; <para> <ulink url="&url.man;mktemp">p&aacute;gina man de <command>mktemp</command></ulink> </para> </refsect1> <refsect1 id="core.pear.system.mktemp.example"> &title.example; <example> <title>Usando <function>mktemp</function></title> <programlisting role="php"> <![CDATA[ $tempfile = System::mktemp("prefix"); $tempdir = System::mktemp("-d prefix"); $tempfile = System::mktemp(); $tempfile = System::mktemp("-t /var/tmp prefix"); ]]> </programlisting> </example> </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 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 --> http://cvs.php.net/co.php/peardoc/es/core/pear/system/rm.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/rm.xml +++ peardoc/es/core/pear/system/rm.xml <!-- EN-Revision: 1.3 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.rm"> <refnamediv> <refname>System::rm</refname> <refpurpose>elimina archivos</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "System.php"; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>System::rm</function></funcdef> <paramdef> string <parameter>$args</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.system.rm.desc"> &title.desc; <para> Comando rm para eliminar archivos. Soporta m&uacute;ltiples archivos y directorios y tambi&eacute;n borrado recursivo. </para> </refsect1> <refsect1 id="core.pear.system.rm.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $args</parameter> - los argumentos para rm </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.system.rm.return"> &title.returns; <para> <parameter>mixed</parameter> - &true; si se tiene &eacute;xito </para> </refsect1> <refsect1 id="core.pear.system.rm.note"> &title.note; &note.canstatic; <simpara></simpara> </refsect1> <refsect1 id="core.pear.system.rm.see"> &title.see; <para> <ulink url="http://unixhelp.ed.ac.uk/CGI/man-cgi?rm">p&aacute;gina man de<command>rm</command> </ulink> </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 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 --> http://cvs.php.net/co.php/peardoc/es/core/pear/system/tmpdir.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/tmpdir.xml +++ peardoc/es/core/pear/system/tmpdir.xml <!-- EN-Revision: 1.2 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.tmpdir"> <refnamediv> <refname>System::tmpdir</refname> <refpurpose>Obtiene el path del directorio temporal</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "System.php"; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>System::tmpdir</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.system.tmpdir.desc"> &title.desc; <para> Obtiene el path del directorio temporal fijado en el sistema buscando en las variables de entorno. </para> </refsect1> <refsect1 id="core.pear.system.tmpdir.return"> &title.returns; <para> <parameter>string</parameter> - El directorio temporal del sistema </para> </refsect1> <refsect1 id="core.pear.system.tmpdir.note"> &title.note; &note.canstatic; <para> php.ini-recommended elimina las <parameter>E</parameter> de los valores de variables_order fijadas, impidiendo acceder a $_ENV array </para> </refsect1> <refsect1 id="core.pear.system.tmpdir.see"> &title.see; <para> <ulink url="&url.man;tmpdir">p&aacute;gina man de <command>tmpdir</command></ulink> </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 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 --> http://cvs.php.net/co.php/peardoc/es/core/pear/system/which.xml?r=1.1&p=1 Index: peardoc/es/core/pear/system/which.xml +++ peardoc/es/core/pear/system/which.xml <!-- EN-Revision: 1.3 Maintainer: kusor Status: ready --> <refentry id="core.pear.system.system.which"> <refnamediv> <refname>System::which</refname> <refpurpose>muestra el path completo de un comando</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "System.php"; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>System::which</function></funcdef> <paramdef> string <parameter>$program</parameter> </paramdef> <paramdef> boolean <parameter><optional>$fallback = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.system.system.which.desc"> &title.desc; <para> Este comando muestra el path completo a un comando. </para> </refsect1> <refsect1 id="core.pear.system.system.which.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $program</parameter> - el comando que se busca </para> </listitem> <listitem> <para> <parameter>boolean $fallback</parameter> - valor a devolver en caso de que el programa no se encuentre </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.system.system.which.return"> &title.returns; <para> <parameter>mixed</parameter> - Una cadebna con el path completo o &false; si no se encuentra </para> </refsect1> <refsect1 id="core.pear.system.system.which.note"> &title.note; &note.canstatic; <simpara></simpara> </refsect1> <refsect1 id="core.pear.system.which.see"> &title.see; <para> <ulink url="&url.man;which">p&aacute;gina man de <command>which</command></ulink> </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 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.pear.doc (#4484) next »