cvs: phpdoc-es /faq obtaining.xml /language operators.xml /reference/array/functions array-diff-uassoc.xml array-multisort.xml array-search.xml
/reference/com reference.xml /reference/errorfunc examples.xml /reference/ftp/functions ftp-delete.xml ftp-fget.xml /reference/misc/functions
get-browser.xml highlight-file.xml highlight-string.xml

From: Date: Tue, 11 May 2004 17:51:07 +0000
Subject: cvs: phpdoc-es /faq obtaining.xml /language operators.xml /reference/array/functions array-diff-uassoc.xml array-multisort.xml array-search.xml
/reference/com reference.xml /reference/errorfunc examples.xml /reference/ftp/functions ftp-delete.xml ftp-fget.xml /reference/misc/functions
get-browser.xml highlight-file.xml highlight-string.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-585@lists.php.net to get a copy of this message
lboshell Tue May 11 13:51:07 2004 EDT Modified files: /phpdoc-es/language operators.xml /phpdoc-es/faq obtaining.xml /phpdoc-es/reference/array/functions array-diff-uassoc.xml array-multisort.xml array-search.xml /phpdoc-es/reference/com reference.xml /phpdoc-es/reference/errorfunc examples.xml /phpdoc-es/reference/ftp/functions ftp-delete.xml ftp-fget.xml /phpdoc-es/reference/misc/functions get-browser.xml highlight-file.xml highlight-string.xml Log: Actualizaciones y correcciones

http://cvs.php.net/diff.php/phpdoc-es/language/operators.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-es/language/operators.xml diff -u phpdoc-es/language/operators.xml:1.9 phpdoc-es/language/operators.xml:1.10 --- phpdoc-es/language/operators.xml:1.9 Mon Apr 12 12:09:24 2004 +++ phpdoc-es/language/operators.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.65 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.66 Maintainer: lboshell Status: ready --> <chapter id="language.operators"> <title>Operadores</title> <simpara> @@ -490,10 +490,9 @@ </simpara> <simpara> Si la caracter&iacute;stica <link - linkend="ini.track-errors">track_errors</link> est&aacute; - habilitada, cualquier mensaje de error generado por la - expresi&oacute;n ser&aacute; almacenado en la variable - <link + linkend="ini.track-errors"><option>track_errors</option></link> + est&aacute; habilitada, cualquier mensaje de error generado por la + expresi&oacute;n ser&aacute; almacenado en la variable <link linkend="reserved.variables.phperrormsg">$php_errormsg</link>. La variable ser&aacute; sobrescrita en cada instancia de error, as&iacute; que realice sus chequeos de forma temprana si quiere http://cvs.php.net/diff.php/phpdoc-es/faq/obtaining.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/faq/obtaining.xml diff -u phpdoc-es/faq/obtaining.xml:1.4 phpdoc-es/faq/obtaining.xml:1.5 --- phpdoc-es/faq/obtaining.xml:1.4 Sun Mar 7 05:30:29 2004 +++ phpdoc-es/faq/obtaining.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.18 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.19 Maintainer: lboshell Status: ready --> <chapter id="faq.obtaining"> <title>Obtenci&oacute;n de PHP</title> <titleabbrev>Obtenci&oacute;n de PHP</titleabbrev> @@ -193,7 +193,6 @@ </question> <answer> <para> - Necesitar&aacute; seguir las instrucciones provistas con la librer&iacute;a. Algunas de estas librer&iacute;as son detectadas autom&aacute;ticamente cuando ejecuta el script @@ -201,8 +200,8 @@ tendr&aacute;n que ser habilitadas usando opciones '<literal>--with-EXTENSION</literal>' con '<literal>configure</literal>'. Ejecute '<literal>configure - --help</literal>' para recibir un listado de &eacute;stas opciones. - + --help</literal>' para recibir un listado de &eacute;stas + opciones. </para> </answer> </qandaentry> @@ -219,9 +218,9 @@ Primero, necesita Microsoft Visual C++ v6 (la versi&oacute;n 5 puede que funcione, pero nosotros usamos la versi&oacute;n 6), y necesitar&aacute; algunos archivos de soporte. Vea la - secci&oacute;n del manual sobre - <link linkend="install.windows.build">la compilaci&oacute;n de - PHP desde las fuentes en Windows</link>. + secci&oacute;n del manual sobre <link + linkend="install.windows.build">la compilaci&oacute;n de PHP + desde las fuentes en Windows</link>. </para> </answer> </qandaentry> @@ -233,7 +232,8 @@ <answer> <para> Puede encontrar un archivo <filename>browscap.ini</filename> en - &url.browscap.download;. + <ulink + url="&url.browscap.download;">&url.browscap.download;</ulink>. </para> </answer> </qandaentry> http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-diff-uassoc.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/array-diff-uassoc.xml diff -u phpdoc-es/reference/array/functions/array-diff-uassoc.xml:1.3 phpdoc-es/reference/array/functions/array-diff-uassoc.xml:1.4 --- phpdoc-es/reference/array/functions/array-diff-uassoc.xml:1.3 Sat May 1 15:49:30 2004 +++ phpdoc-es/reference/array/functions/array-diff-uassoc.xml Tue May 11 13:51:06 2004 @@ -1,13 +1,15 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-diff-uassoc"> <refnamediv> <refname>array_diff_uassoc</refname> - <refpurpose>Computa la diferencia entre matrices con un chequeo - adicional de &iacute;ndices, el cual es realizado por una llamada - de retorno entregada por el usuario.</refpurpose> + <refpurpose> + Computa la diferencia entre matrices con un chequeo adicional de + &iacute;ndices, el cual es realizado por una llamada de retorno + entregada por el usuario + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -15,7 +17,7 @@ <type>array</type><methodname>array_diff_uassoc</methodname> <methodparam><type>array</type><parameter>matriz1</parameter></methodparam> <methodparam><type>array</type><parameter>matriz2</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam> <methodparam><type>callback</type><parameter>func_comparacion_claves</parameter></methodparam> </methodsynopsis> <para> http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-multisort.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/array-multisort.xml diff -u phpdoc-es/reference/array/functions/array-multisort.xml:1.3 phpdoc-es/reference/array/functions/array-multisort.xml:1.4 --- phpdoc-es/reference/array/functions/array-multisort.xml:1.3 Wed Mar 31 20:03:31 2004 +++ phpdoc-es/reference/array/functions/array-multisort.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.11 --> <refentry id="function.array-multisort"> <refnamediv> @@ -42,10 +42,10 @@ Banderas de orientaci&oacute;n del ordenamiento: <itemizedlist> <listitem> - <simpara>SORT_ASC - ordenar ascendentemente</simpara> + <simpara><constant>SORT_ASC</constant> - ordenar ascendentemente</simpara> </listitem> <listitem> - <simpara>SORT_DESC - ordenar descendentemente</simpara> + <simpara><constant>SORT_DESC</constant> - ordenar descendentemente</simpara> </listitem> </itemizedlist> </para> @@ -53,15 +53,15 @@ Banderas de tipo de ordenamiento <itemizedlist> <listitem> - <simpara>SORT_REGULAR - comparar elementos + <simpara><constant>SORT_REGULAR</constant> - comparar elementos normalmente</simpara> </listitem> <listitem> - <simpara>SORT_NUMERIC - comparar elementos + <simpara><constant>SORT_NUMERIC</constant> - comparar elementos num&eacute;ricamente</simpara> </listitem> <listitem> - <simpara>SORT_STRING - comparar elementos como + <simpara><constant>SORT_STRING</constant> - comparar elementos como cadenas</simpara> </listitem> </itemizedlist> @@ -71,8 +71,9 @@ tipo luego de cada matriz. Las banderas de ordenamiento especificadas a continuaci&oacute;n de un argumento matriz se aplican s&oacute;lo a esa matriz - estos valores son - restablecidos de vuelta a SORT_ASC y SORT_REGULAR antes de cada - nuevo argumento matriz. + restablecidos de vuelta a <constant>SORT_ASC</constant> y + <constant>SORT_REGULAR</constant> antes de cada nuevo argumento + matriz. </para> <para> &return.success; http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-search.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/array/functions/array-search.xml diff -u phpdoc-es/reference/array/functions/array-search.xml:1.4 phpdoc-es/reference/array/functions/array-search.xml:1.5 --- phpdoc-es/reference/array/functions/array-search.xml:1.4 Fri Jan 9 13:59:27 2004 +++ phpdoc-es/reference/array/functions/array-search.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-search"> <refnamediv> @@ -33,8 +33,8 @@ <note> <para> En versiones de PHP anteriores a 4.2.0, - <function>array_search</function> devuelve - <constant>NULL</constant> en caso de fallo, en lugar de &false;. + <function>array_search</function> devuelve &null; en caso de + fallo, en lugar de &false;. </para> </note> <para> http://cvs.php.net/diff.php/phpdoc-es/reference/com/reference.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/com/reference.xml diff -u phpdoc-es/reference/com/reference.xml:1.5 phpdoc-es/reference/com/reference.xml:1.6 --- phpdoc-es/reference/com/reference.xml:1.5 Tue May 4 04:45:30 2004 +++ phpdoc-es/reference/com/reference.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <reference id="ref.com"> <title>Funciones COM y .Net (Windows)</title> <titleabbrev>COM</titleabbrev> @@ -224,7 +224,11 @@ Librer&iacute;a COM M&aacute;s (YACL por sus siglas en Ingl&eacute;s)</ulink> de Don Box. Puede encontrar informaci&oacute;n adicional en nuestro FAQ sobre <xref - linkend="faq.com"/>. + linkend="faq.com"/>. Si est&aacute; pensando en usar aplicaciones + MS Office en el lado del servidor, es buena idea que lea la + informaci&oacute;n encontrada aqu&iacute;: <ulink + url="&url.msoffice.serverside;">Consideraciones para la + Automatizaci&oacute;n de Office en el Lado del Servidor</ulink>. </para> </section> </partintro> http://cvs.php.net/diff.php/phpdoc-es/reference/errorfunc/examples.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-es/reference/errorfunc/examples.xml diff -u phpdoc-es/reference/errorfunc/examples.xml:1.5 phpdoc-es/reference/errorfunc/examples.xml:1.6 --- phpdoc-es/reference/errorfunc/examples.xml:1.5 Sun Mar 7 05:30:31 2004 +++ phpdoc-es/reference/errorfunc/examples.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <section id="errorfunc.examples"> &reftitle.examples; <para> @@ -57,8 +57,9 @@ $err .= "\t<scriptname>" . $nombre_archivo . "</scriptname>\n"; $err .= "\t<scriptlinenum>" . $num_linea . "</scriptlinenum>\n"; - if (in_array($num_err, $errores_de_usuario)) + if (in_array($num_err, $errores_de_usuario)) { $err .= "\t<vartrace>" . wddx_serialize_value($vars, "Variables") . "</vartrace>\n"; + } $err .= "</errorentry>\n\n"; // para efectos de debug http://cvs.php.net/diff.php/phpdoc-es/reference/ftp/functions/ftp-delete.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/ftp/functions/ftp-delete.xml diff -u phpdoc-es/reference/ftp/functions/ftp-delete.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-delete.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-delete.xml:1.1 Sun Apr 14 20:14:03 2002 +++ phpdoc-es/reference/ftp/functions/ftp-delete.xml Tue May 11 13:51:06 2004 @@ -1,23 +1,54 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ftp.xml, last change in rev 1.1 --> -<!-- last change to 'ftp-delete' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <refentry id="function.ftp-delete"> <refnamediv> <refname>ftp_delete</refname> - <refpurpose>Borra un fichero del servidor FTP.</refpurpose> + <refpurpose>Elimina un archivo en el servidor FTP</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>ftp_delete</methodname> - <methodparam><type>int</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>path</parameter></methodparam> + <type>bool</type><methodname>ftp_delete</methodname> + <methodparam><type>resource</type><parameter>secuencia_ftp</parameter></methodparam> + <methodparam><type>string</type><parameter>ruta</parameter></methodparam> </methodsynopsis> <para> - Si tiene &eacute;xito, devuelve &true;. En caso de error, devuelve &false;.</para> + <function>ftp_delete</function> elimina el archivo especificado + por <parameter>ruta</parameter> desde el servidor FTP. + </para> <para> - <function>ftp_delete</function> borra el fichero especificado por el - par&aacute;metro <parameter>path</parameter> del servidor FTP.</para> + <example> + <title>Ejemplo de <function>ftp_delete</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$archivo = 'public_html/antiguo.txt'; + +// establecer conexion basica +$id_con = ftp_connect($servidor_ftp); + +// iniciar sesion con nombre de usuario y contrasenya +$resultado_login = ftp_login($id_con, $ftp_nombre_usuario, $ftp_contrasenya); + +// intento de eliminar $archivo +if (ftp_delete($id_con, $archivo)) { + echo "$archivo se elimin&oacute; satisfactoriamente\n"; +} else { + echo "no se pudo eliminar $archivo\n"; +} + +// cerrar la conexion +ftp_close($id_con); +?> +]]> + </programlisting> + </example> + </para> + <para> + &return.success; + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/ftp/functions/ftp-fget.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/ftp/functions/ftp-fget.xml diff -u phpdoc-es/reference/ftp/functions/ftp-fget.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-fget.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-fget.xml:1.1 Sun Apr 14 20:14:03 2002 +++ phpdoc-es/reference/ftp/functions/ftp-fget.xml Tue May 11 13:51:06 2004 @@ -1,29 +1,77 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ftp.xml, last change in rev 1.1 --> -<!-- last change to 'ftp-fget' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> +<!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <refentry id="function.ftp-fget"> <refnamediv> <refname>ftp_fget</refname> - <refpurpose>Descarga un fichero del servidor FTP y lo guarda en - un fichero abierto.</refpurpose> + <refpurpose>Descarga un archivo desde el servidor FTP y lo guarda + en un archivo abierto</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>ftp_fget</methodname> - <methodparam><type>int</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> - <methodparam><type>string</type><parameter>remote_file</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> + <type>bool</type><methodname>ftp_fget</methodname> + <methodparam><type>resource</type><parameter>secuencia_ftp</parameter></methodparam> + <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> + <methodparam><type>string</type><parameter>archivo_remoto</parameter></methodparam> + <methodparam><type>int</type><parameter>modo</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>pos_reanudar</parameter></methodparam> </methodsynopsis> <para> - Si tiene &eacute;xito, devuelve &true;. En caso de error, devuelve &false;.</para> + <function>ftp_fget</function> recupera + <parameter>archivo_remoto</parameter> desde el servidor FTP, y lo + escribe en el apuntador de archivo dado, + <parameter>gestor</parameter>. El <parameter>modo</parameter> de + transferencia especificado debe ser un valor entre + <constant>FTP_ASCII</constant> y <constant>FTP_BINARY</constant>. + </para> <para> - <function>ftp_fget</function> baja el fichero - <parameter>remote_file</parameter> del servidor FTP, y lo escribe en - el puntero a fichero <parameter>fp</parameter>. El modo de - transferencia especificado por el par&aacute;metro <parameter>mode</parameter> - debe ser FTP_ASCII o bien FTP_BINARY.</para> + <example> + <title>Ejemplo de <function>ftp_fget</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// abrir algun archivo para lectura +$archivo = 'algun_archivo.txt'; +$da = fopen($archivo, 'w'); + +// establecer la conexion basica +$id_con = ftp_connect($servidor_ftp); + +// iniciar sesion con nombre de usuario y contrasenya +$resultado_login = ftp_login($id_con, $ftp_nombre_usuario, $ftp_contrasenya); + +// intento por descargar $archivo +if (ftp_fget($id_con, $da, $archivo, FTP_ASCII, 1)) { + echo "Se ha escrito satisfactoriamente sobre $archivo\n"; +} else { + echo "Hubo un problema con $archivo\n"; +} + +// cerrar la conexion y el gestor de archivo +ftp_close($id_con); +fclose($da); +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + El par&aacute;metro <parameter>pos_reanudar</parameter> fue + agregado en PHP 4.3.0. + </para> + </note> + <para> + &return.success; + </para> + <para> + Vea tambi&eacute;n <function>ftp_get</function>, + <function>ftp_nb_get</function> y + <function>ftp_nb_fget</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/get-browser.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/misc/functions/get-browser.xml diff -u phpdoc-es/reference/misc/functions/get-browser.xml:1.2 phpdoc-es/reference/misc/functions/get-browser.xml:1.3 --- phpdoc-es/reference/misc/functions/get-browser.xml:1.2 Sat Jan 31 10:47:18 2004 +++ phpdoc-es/reference/misc/functions/get-browser.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.2 --> <refentry id="function.get-browser"> <refnamediv> @@ -18,13 +18,13 @@ <simpara> <function>get_browser</function> intenta determinar las capacidades del navegador del usuario. Para ello consulta el - archivo de informaci&oacute;n del - navegador, <filename>browscap.ini</filename>. Por defecto, se - utiliza el valor de <varname>HTTP_USER_AGENT</varname>; sin + archivo de informaci&oacute;n del navegador, + <filename>browscap.ini</filename>. Por defecto, se utiliza el + valor de <varname>$_SERVER["HTTP_USER_AGENT"]</varname>; sin embargo, puede alterar este comportamiento (es decir, consultar la informaci&oacute;n de otro navegador) pasando el - par&aacute;metro opcional <parameter>agente_usuario</parameter> - a <function>get_browser</function>. + par&aacute;metro opcional <parameter>agente_usuario</parameter> a + <function>get_browser</function>. </simpara> <simpara> La informaci&oacute;n se devuelve en un <type>object</type>, el http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/highlight-file.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-es/reference/misc/functions/highlight-file.xml diff -u phpdoc-es/reference/misc/functions/highlight-file.xml:1.6 phpdoc-es/reference/misc/functions/highlight-file.xml:1.7 --- phpdoc-es/reference/misc/functions/highlight-file.xml:1.6 Tue Feb 17 15:05:38 2004 +++ phpdoc-es/reference/misc/functions/highlight-file.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.22 --> <refentry id="function.highlight-file"> <refnamediv> @@ -79,8 +79,9 @@ ]]> </programlisting> <simpara> - Y luego cree un archivo llamado "source" y col&oacute;quelo en - su directorio ra&iacute;z de documentos web. + Y luego cree un archivo llamado <filename>source</filename> y + col&oacute;quelo en su directorio ra&iacute;z de documentos + web. </simpara> <programlisting role="php"> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-es/reference/misc/functions/highlight-string.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/misc/functions/highlight-string.xml diff -u phpdoc-es/reference/misc/functions/highlight-string.xml:1.1 phpdoc-es/reference/misc/functions/highlight-string.xml:1.2 --- phpdoc-es/reference/misc/functions/highlight-string.xml:1.1 Thu Nov 20 18:02:07 2003 +++ phpdoc-es/reference/misc/functions/highlight-string.xml Tue May 11 13:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/misc.xml, last change in rev 1.22 --> <refentry id="function.highlight-string"> <refnamediv> @@ -15,24 +15,64 @@ <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. + 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. + 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> + <para> + <example> + <title>Ejemplo de <function>highlight_string</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +highlight_string('<?php phpinfo(); ?>'); +?> +]]> + </programlisting> + <para> + El anterior ejemplo producir&aacute; la siguiente salida (en + PHP 4): + </para> + <screen> +<![CDATA[ +<code><font color="#000000"> +<font color="#0000BB">&lt;?php phpinfo</font><font color="#007700">(); +</font><\font color="#0000BB">?&gt;</font> +</font> +</code> +]]> + </screen> + <para> + El anterior ejemplo producir&aacute; la siguiente salida (en + PHP 5): + </para> + <screen> +<![CDATA[ +<code><span style="color: #000000"> +<span style="color: #0000BB">&lt;?php phpinfo</span><span +style="color: #007700\">(); </span><span style="color: +#0000BB">?&gt;</span> +</span> +</code> +]]> + </screen> + </example> + </para> <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;. + 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>
« previous php.doc.es (#585) next »