cvs: phpdoc-es / translation.xml /reference/mhash configure.xml constants.xml /reference/mhash/functions mhash-keygen-s2k.xml /reference/misc
constants.xml ini.xml /reference/misc/functions constant.xml highlight-file.xml highlight-string.xml show-source.xml

From: Date: Thu, 20 Nov 2003 23:02:07 +0000
Subject: cvs: phpdoc-es / translation.xml /reference/mhash configure.xml constants.xml /reference/mhash/functions mhash-keygen-s2k.xml /reference/misc
constants.xml ini.xml /reference/misc/functions constant.xml highlight-file.xml highlight-string.xml show-source.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-423@lists.php.net to get a copy of this message
lboshell Thu Nov 20 18:02:07 2003 EDT Added files: /phpdoc-es/reference/mhash configure.xml constants.xml /phpdoc-es/reference/mhash/functions mhash-keygen-s2k.xml /phpdoc-es/reference/misc constants.xml ini.xml /phpdoc-es/reference/misc/functions constant.xml highlight-file.xml highlight-string.xml show-source.xml Modified files: /phpdoc-es translation.xml Log: Nuevos archivos de reference/mhash y reference/misc - Asignacion de nuevo trabajo

Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.89 phpdoc-es/translation.xml:1.90 --- phpdoc-es/translation.xml:1.89 Wed Nov 19 00:46:06 2003 +++ phpdoc-es/translation.xml Thu Nov 20 18:02:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.89 $ --> +<!-- $Revision: 1.90 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -38,14 +38,33 @@ <file name="reference/java/ini.xml" person="javi" type="translation" date="14.11.2003"/> <file name="reference/java/functions/java-last-exception-clear.xml" person="javi" type="translation" date="14.11.2003"/> <file name="reference/java/functions/java-last-exception-get.xml" person="javi" type="translation" date="14.11.2003"/> -<file name="reference/mhash/configure.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/mhash/constants.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/mhash/functions/mhash-keygen-s2k.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/misc/constants.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/misc/ini.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/misc/functions/constant.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/misc/functions/highlight-file.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/misc/functions/highlight-string.xml" person="lboshell" type="translation" date="19.11.2003"/> -<file name="reference/misc/functions/show-source.xml" person="lboshell" type="translation" date="19.11.2003"/> +<file name="reference/info/constants.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/ini.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/assert-options.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/assert.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/dl.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/get-defined-constants.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/get-extension-funcs.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/get-include-path.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/get-included-files.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/get-loaded-extensions.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/get-required-files.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/getmygid.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/getopt.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/ini-alter.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/ini-get-all.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/ini-get.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/ini-restore.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/ini-set.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/main.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/memory-get-usage.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/php-ini-scanned-files.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/php-sapi-name.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/php-uname.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/phpcredits.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/restore-include-path.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/set-include-path.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/version-compare.xml" person="lboshell" type="translation" date="20.11.2003"/> +<file name="reference/info/functions/zend-version.xml" person="lboshell" type="translation" date="20.11.2003"/> </work-in-progress> </translation> Index: phpdoc-es/reference/mhash/configure.xml +++ phpdoc-es/reference/mhash/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: lboshell Status: ready --> <section id="mhash.installation"> &reftitle.install; <para> Necesita compilar PHP con el par&aacute;metro <option role="configure">--with-mhash[=DIR]</option> para habilitar esta extensi&oacute;n. DIR es el directorio de instalaci&oacute;n de mhash. </para> </section> <!-- 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 --> Index: phpdoc-es/reference/mhash/constants.xml +++ phpdoc-es/reference/mhash/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: lboshell Status: ready --> <section id="mhash.constants"> &reftitle.constants; &extension.constants; <para> A continuaci&oacute;n se encuentra una lista de res&uacute;menes criptogr&aacute;ficos soportados en la actualidad por mhash. Si un mecanismo de resumen no se encuentra listado aqu&iacute;, pero es listado como soportado por mhash, puede asumir con seguridad que esta documentaci&oacute;n se encuentra desactualizada. <itemizedlist> <listitem> <simpara> <constant>MHASH_MD5</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_SHA1</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_HAVAL256</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_HAVAL192</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_HAVAL160</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_HAVAL128</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_RIPEMD160</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_GOST</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_TIGER</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_CRC32</constant> </simpara> </listitem> <listitem> <simpara> <constant>MHASH_CRC32B</constant> </simpara> </listitem> </itemizedlist> </para> </section> <!-- 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 --> Index: phpdoc-es/reference/mhash/functions/mhash-keygen-s2k.xml +++ phpdoc-es/reference/mhash/functions/mhash-keygen-s2k.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mhash.xml, last change in rev 1.7 --> <refentry id="function.mhash-keygen-s2k"> <refnamediv> <refname>mhash_keygen_s2k</refname> <refpurpose>Genera una llave</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>string</type><methodname>mhash_keygen_s2k</methodname> <methodparam><type>int</type><parameter>hash</parameter></methodparam> <methodparam><type>string</type><parameter>contrasenya</parameter></methodparam> <methodparam><type>string</type><parameter>sal</parameter></methodparam> <methodparam><type>int</type><parameter>bytes</parameter></methodparam> </methodsynopsis> <para> <function>mhash_keygen_s2k</function> genera una llave con una longitud indicada por <parameter>bytes</parameter>, a partir de una contrase&ntilde;a entregada por el usuario. Este es el algoritmo con sal S2K, tal y como se encuentra especificado en el documento OpenPGP (RFC 2440). Ese algoritmo usar&aacute; el algoritmo <parameter>hash</parameter> especificado para crear la llave. La <parameter>sal</parameter> debe ser diferente y suficientemente aleatoria para cada llave que genere para crear diferentes llaves. La sal debe conocerse cuando chequee las llaves, de modo que es una buena idea adicionarle la llave al final. La sal tiene un tama&ntilde;o fijo de 8 bytes y ser&aacute; rellenada con ceros si usted suple menos bytes. </para> <para> Tenga en mente que las contrase&ntilde;as entregadas por el usuario no son realmente apropiadas para ser usadas como llaves en algoritmos criptogr&aacute;ficos, ya que los usuarios normalmente eligen llaves que pueden escribir con el teclado. Estas contrese&ntilde;as usan solo 6 o 7 bits por caracter (o menos). Es bastante recomendable usar alg&uacute;n tipo de transformaci&oacute;n (como esta funci&oacute;n) sobre la llave entregada por el usuario. </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 --> Index: phpdoc-es/reference/misc/constants.xml +++ phpdoc-es/reference/misc/constants.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <section id="misc.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> <constant>CONNECTION_ABORTED</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>CONNECTION_NORMAL</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>CONNECTION_TIMEOUT</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> </variablelist> </section> <!-- 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 --> Index: phpdoc-es/reference/misc/ini.xml +++ phpdoc-es/reference/misc/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <section id="misc.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Opciones Varias de Configuraci&oacute;n</title> <tgroup cols="3"> <thead> <row> <entry>Nombre</entry> <entry>Predeterminado</entry> <entry>Modificable</entry> </row> </thead> <tbody> <row> <entry>ignore_user_abort</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>highlight.string</entry> <entry>#CC0000</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>highlight.comment</entry> <entry>#FF9900</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>highlight.keyword</entry> <entry>#006600</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>highlight.bg</entry> <entry>#FFFFFF</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>highlight.default</entry> <entry>#0000CC</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>highlight.html</entry> <entry>#000000</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>browscap</entry> <entry>NULL</entry> <entry>PHP_INI_SYSTEM</entry> </row> </tbody> </tgroup> </table> Para m&aacute;s detalles sobre las constantes PHP_INI_* y su definici&oacute;n, vea <function>ini_set</function>. </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.ignore-user-abort"> <term> <parameter>ignore_user_abort</parameter> <type>boolean</type> </term> <listitem> <para> &true; por defecto. Si se modifica a &false;, los scripts terminar&aacute;n tan pronto intenten generar alguna salida despu&eacute;n de que el cliente haya abortado su conexi&oacute;n. </para> <para> Vea tambi&eacute;n <function>ignore_user_abort</function>. </para> </listitem> </varlistentry> <varlistentry id="ini.syntax-highlighting"> <term> <parameter>highlight.comment</parameter> <type>string</type> </term> <term> <parameter>highlight.default</parameter> <type>string</type> </term> <term> <parameter>highlight.html</parameter> <type>string</type> </term> <term> <parameter>highlight.keyword</parameter> <type>string</type> </term> <term> <parameter>highlight.string</parameter> <type>string</type> </term> <listitem> <para> Colores para el modo de Resaltado de Sintaxis. Cualquier cosa que sea aceptable en &lt;font color="??????"&gt; deber&iacute;a funcionar. </para> </listitem> </varlistentry> <varlistentry id="ini.browscap"> <term> <parameter>browscap</parameter> <type>string</type> </term> <listitem> <para> Nombre (p.ej.: <filename>browscap.ini</filename>) y ubicaci&oacute;n del archivo de capacidades del navegador. Vea tambi&eacute;n <function>get_browser</function>. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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 --> Index: phpdoc-es/reference/misc/functions/constant.xml +++ phpdoc-es/reference/misc/functions/constant.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.38 --> <refentry id="function.constant"> <refnamediv> <refname>constant</refname> <refpurpose>Devuelve el valor de una constante</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>mixed</type><methodname>constant</methodname> <methodparam><type>string</type><parameter>nombre</parameter></methodparam> </methodsynopsis> <simpara> <function>constant</function> devolver&aacute; el valor de la constante indicada por <parameter>nombre</parameter>. </simpara> <simpara> <function>constant</function> es &uacute;til si necesita recuperar el valor de una constante, pero no conoce su nombre. Esto quiere decir, si est&aacute; almacenada en una variable o es devuelta por una funci&oacute;n. </simpara> <para> <example> <title>Ejemplo de <function>constant</function></title> <programlisting role="php"> <![CDATA[ <?php define ("TAMMAX", 100); echo TAMMAX; echo constant("TAMMAX"); // igual que la linea anterior ?> ]]> </programlisting> </example> </para> <para> Vea tambi&eacute;n <function>define</function>, <function>defined</function> y la secci&oacute;n sobre <link linkend="language.constants">Constantes</link>. </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 --> Index: phpdoc-es/reference/misc/functions/highlight-file.xml +++ phpdoc-es/reference/misc/functions/highlight-file.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.22 --> <refentry id="function.highlight-file"> <refnamediv> <refname>highlight_file</refname> <refpurpose>Resaltado de sintaxis de un archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>mixed</type><methodname>highlight_file</methodname> <methodparam><type>string</type><parameter>nombre_archivo</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>devolver</parameter></methodparam> </methodsynopsis> <simpara> La funci&oacute;n <function>highlight_file</function> imprime una versi&oacute;n con resaltado de sintaxis del c&oacute;digo contenido en <parameter>nombre_archivo</parameter> usando los colores definidos en el resaltador de sintaxis incorporado de PHP. </simpara> <simpara> Si el segundo par&aacute;metro <parameter>devolver</parameter> es definido a &true; entonces <function>highlight_file</function> devolver&aacute; el c&oacute;digo resaltado en lugar de imprimirlo. Si el segundo par&aacute;metro no es definido a &true; entonces <function>highlight_file</function> devolver&aacute; &true; si tiene &eacute;xito, o &false; en caso de fallo. </simpara> <note> <simpara> El par&aacute;metro <parameter>devolver</parameter> apareci&oacute; en PHP 4.2.0. Antes de esta versi&oacute;n, ten&iacute;a el comportamiento predeterminado, que es &false; </simpara> </note> <caution> <simpara> Debe tenerse cuidado cuando se usan las funciones <function>show_source</function> y <function>highlight_file</function> para asegurarse de que no se revele inadvertidamente informaci&oacute;n sensible, tal como contrase&ntilde;as o cualquier otro tipo de informaci&oacute;n que pueda crear un riesgo potencial de seguridad. </simpara> </caution> <note> <simpara> A partir de PHP 4.2.1 esta funci&oacute;n es influenciada tambi&eacute;n por <link linkend="ini.safe-mode">safe_mode</link> y <link linkend="ini.open-basedir">open_basedir</link>. </simpara> </note> <simpara> Para crear una URL que pueda resaltar el c&oacute;digo de cualquier script que le sea pasado, haremos uso de la directiva "ForceType" en Apache para generar un agradable patr&oacute;n URL, y usaremos la funci&oacute;n <function>highlight_file</function> para mostrar un listado de c&oacute;digo bien presentado. </simpara> <simpara> En su &httpd.conf; puede agregar lo siguiente: </simpara> <para> <example> <title>Creaci&oacute;n de una URL para resaltar c&oacute;digo fuente</title> <programlisting> <![CDATA[ <Location /source> ForceType application/x-httpd-php </Location> ]]> </programlisting> <simpara> Y luego cree un archivo llamado "source" y col&oacute;quelo en su directorio ra&iacute;z de documentos web. </simpara> <programlisting role="php"> <![CDATA[ <html> <head> <title>Presentaci&oacute;n de C&oacute;digo Fuente</title> </head> <body bgcolor="white"> <?php $script = getenv("PATH_TRANSLATED"); if (!$script) { echo "<br /><b>ERROR: Se necesita el Nombre del Script</b><br />"; } else { if (ereg("(\.php|\.inc)$",$script)) { echo "<h1>Fuente de: $PATH_INFO</h1>\n<hr />\n"; highlight_file($script); } else { echo "<h1>ERROR: Solo se permiten scripts o archivos de " . "inclusion PHP</h1>"; } } echo "<hr />Procesado: ". date("Y/M/d H:i:s", time()); ?> </BODY> </HTML> ]]> </programlisting> <simpara> Luego puede usar una URL como la siguiente para mostrar una versi&oacute;n en colores de un script ubicado en "/ruta/hacia/script.php" en su sitio web. </simpara> <screen> <![CDATA[ http://su.servidor.com/source/ruta/hacia/script.php ]]> </screen> </example> </para> <simpara> Vea tambi&eacute;n <function>highlight_string</function>. </simpara> </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 --> Index: phpdoc-es/reference/misc/functions/highlight-string.xml +++ phpdoc-es/reference/misc/functions/highlight-string.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.22 --> <refentry id="function.highlight-string"> <refnamediv> <refname>highlight_string</refname> <refpurpose>Resaltado de sintaxis de una cadena</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>mixed</type><methodname>highlight_string</methodname> <methodparam><type>string</type><parameter>cadena</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>devolver</parameter></methodparam> </methodsynopsis> <simpara> La funci&oacute;n <function>highlight_string</function> imprime una versi&oacute;n con resaltado de c&oacute;digo de <parameter>cadena</parameter> usando los colores definidos en el resaltador de c&oacute;digo incorporado de PHP. </simpara> <simpara> Si el segundo par&aacute;metro <parameter>devolver</parameter> es definido a &true; entonces <function>highlight_string</function> devolver&aacute; el c&oacute;digo resaltado como una cadena en lugar de imprimirlo. Si el segundo par&aacute;metro no es definido a &true; entonces <function>highlight_string</function> devolver&aacute; &true; de tener &eacute;xito, o &false; en caso de fallo. </simpara> <note> <simpara> El par&aacute;metro <parameter>devolver</parameter> apareci&oacute; en PHP 4.2.0. Antes de esta versi&oacute;n, su comportamiento era el predeterminado, el cual es &false;. </simpara> </note> <simpara> Vea tambi&eacute;n <function>highlight_file</function>. </simpara> </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 --> Index: phpdoc-es/reference/misc/functions/show-source.xml +++ phpdoc-es/reference/misc/functions/show-source.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.24 --> <refentry id="function.show-source"> <refnamediv> <refname>show_source</refname> <refpurpose>Alias de <function>highlight_file</function></refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <para> Esta funci&oacute;n es un alias de <function>highlight_file</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 (#423) next »