cvs: phpdoc-es /reference/ftp/functions ftp-chmod.xml ftp-close.xml ftp-nb-continue.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-set-option.xml
ftp-site.xml ftp-ssl-connect.xml /reference/pcre constants.xml /reference/readline reference.xml /reference/sockets reference.xml
/reference/stream constants.xml reference.xml /reference/url/functions http-build-query.xml /reference/var ini.xml

From: Date: Fri, 19 Dec 2003 21:18:32 +0000
Subject: cvs: phpdoc-es /reference/ftp/functions ftp-chmod.xml ftp-close.xml ftp-nb-continue.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-set-option.xml
ftp-site.xml ftp-ssl-connect.xml /reference/pcre constants.xml /reference/readline reference.xml /reference/sockets reference.xml
/reference/stream constants.xml reference.xml /reference/url/functions http-build-query.xml /reference/var ini.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-453@lists.php.net to get a copy of this message
lboshell Fri Dec 19 16:18:32 2003 EDT Modified files: /phpdoc-es/reference/ftp/functions ftp-chmod.xml ftp-close.xml ftp-nb-continue.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-set-option.xml ftp-site.xml ftp-ssl-connect.xml /phpdoc-es/reference/pcre constants.xml /phpdoc-es/reference/readline reference.xml /phpdoc-es/reference/sockets reference.xml /phpdoc-es/reference/stream constants.xml reference.xml /phpdoc-es/reference/url/functions http-build-query.xml /phpdoc-es/reference/var ini.xml Log: Actualizaciones

Index: phpdoc-es/reference/ftp/functions/ftp-chmod.xml diff -u phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-chmod.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-chmod.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <refentry id="function.ftp-chmod"> <refnamediv> <refname>ftp_chmod</refname> @@ -20,6 +20,34 @@ dado como un valor <emphasis>octal</emphasis>. </para> <para> + <example> + <title>Ejemplo de <function>ftp_chmod</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$archivo = 'public_html/index.php'; + +// configurar una conexion basica +$id_con = ftp_connect($servidor_ftp); + +// iniciar sesion con nombre de usuario y contrasenya +$resultado_login = ftp_login($id_con, $nombre_usuario_ftp, $contrasenya_ftp); + +// intentar chmod en $archivo con el valor 644 +if (ftp_chmod($id_con, 0644, $archivo)) { + echo "se efectu&oacute; chmod sobre $archivo satisfactoriamente con el valor 644\n"; +} else { + echo "no se pudo realizar chmod sobre $archivo\n"; +} + +// cerrar la conexion +ftp_close($id_con); +?> +]]> + </programlisting> + </example> + </para> + <para> Devuelve los nuevos permisos del archivo en caso de &eacute;xito, o &false; si ocurre un fallo. </para> Index: phpdoc-es/reference/ftp/functions/ftp-close.xml diff -u phpdoc-es/reference/ftp/functions/ftp-close.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-close.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-close.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-close.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.34 --> <refentry id="function.ftp-close"> <refnamediv> @@ -20,6 +20,29 @@ funci&oacute;n, no puede continuar usando la conexi&oacute;n FTP y debe crear una nueva con <function>ftp_connect</function>. </simpara> + <para> + <example> + <title>Ejemplo de <function>ftp_close</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// establecer una conexion basica +$id_con = ftp_connect($servidor_ftp); + +// iniciar sesion con nombre de usuario y contrasenya +$resultado_login = ftp_login($id_con, $nombre_usuario, $contrasenya_ftp); + +// imprimir el directorio actual +echo ftp_pwd($id_con); // / + +// cerrar esta conexion +ftp_close($id_con); +?> +]]> + </programlisting> + </example> + </para> <simpara> Vea tambi&eacute;n <function>ftp_connect</function> </simpara> Index: phpdoc-es/reference/ftp/functions/ftp-nb-continue.xml diff -u phpdoc-es/reference/ftp/functions/ftp-nb-continue.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-nb-continue.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-nb-continue.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-nb-continue.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.ftp-nb-continue"> <refnamediv> <refname>ftp_nb_continue</refname> @@ -18,6 +18,29 @@ modo de no-bloqueo. </para> <para> + <example> + <title>Ejemplo de <function>ftp_nb_continue</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Iniciar la descarga +$ret = ftp_nb_get($mi_conexion, "prueba", "LEAME", FTP_BINARY); +while ($ret == FTP_MOREDATA) { + + // Continuar con la descarga... + $ret = ftp_nb_continue($mi_conexion); +} +if ($ret != FTP_FINISHED) { + echo "Hubo un error en la descarga del archivo..."; + exit(1); +} +?> +]]> + </programlisting> + </example> + </para> + <para> Devuelve <constant>FTP_FAILED</constant> o <constant>FTP_FINISHED</constant> o <constant>FTP_MOREDATA</constant>. Index: phpdoc-es/reference/ftp/functions/ftp-nb-fget.xml diff -u phpdoc-es/reference/ftp/functions/ftp-nb-fget.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-nb-fget.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-nb-fget.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-nb-fget.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <refentry id="function.ftp-nb-fget"> <refnamediv> <refname>ftp_nb_fget</refname> @@ -30,6 +30,43 @@ est&aacute; siendo descargado. </para> <para> + <example> + <title>Ejemplo de <function>ftp_nb_fget</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// abrir un archivo para lectura +$archivo = 'index.php'; +$da = fopen($archivo, 'w'); + +$id_con = ftp_connect($servidor_ftp); + +$resultado_login = ftp_login($id_con, $nombre_usuario_ftp, $contrasenya_ftp); + +// Iniciar la descarga +$ret = ftp_nb_fget($id_con, $da, $archivo, FTP_BINARY); +while ($ret == FTP_MOREDATA) { + + // Haga lo que desee + echo "."; + + // Continuar la descarga... + $ret = ftp_nb_continue($id_con); +} +if ($ret != FTP_FINISHED) { + echo "Hubo un error en la descarga del archivo..."; + exit(1); +} + +// cerrar el apuntador de archivo +fclose($da); +?> +]]> + </programlisting> + </example> + </para> + <para> Devuelve <constant>FTP_FAILED</constant>, <constant>FTP_FINISHED</constant>, o <constant>FTP_MOREDATA</constant>. Index: phpdoc-es/reference/ftp/functions/ftp-nb-fput.xml diff -u phpdoc-es/reference/ftp/functions/ftp-nb-fput.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-nb-fput.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-nb-fput.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-nb-fput.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <refentry id="function.ftp-nb-fput"> <refnamediv> <refname>ftp_nb_fput</refname> @@ -31,6 +31,42 @@ est&aacute; siendo cargado. </para> <para> + <example> + <title>Ejemplo de <function>ftp_nb_fput</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$archivo = 'index.php'; + +$da = fopen($archivo, 'r'); + +$id_con = ftp_connect($servidor_ftp); + +$resultado_login = ftp_login($id_con, $nombre_usuario_ftp, $contrasenya_ftp); + +// Iniciar la carga +$ret = ftp_nb_fput($id_con, $arcivo, $da, FTP_BINARY); +while ($ret == FTP_MOREDATA) { + + // Haga lo que desee + echo "."; + + // Continuar la carga... + $ret = ftp_nb_continue($id_con); +} +if ($ret != FTP_FINISHED) { + echo "Hubo un error en la carga del archivo..."; + exit(1); +} + +fclose($da); +?> +]]> + </programlisting> + </example> + </para> + <para> Devuelve <constant>FTP_FAILED</constant>, <constant>FTP_FINISHED</constant>, o <constant>FTP_MOREDATA</constant>. </para> Index: phpdoc-es/reference/ftp/functions/ftp-set-option.xml diff -u phpdoc-es/reference/ftp/functions/ftp-set-option.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-set-option.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-set-option.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-set-option.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.32 --> <refentry id='function.ftp-set-option'> <refnamediv> @@ -56,17 +56,19 @@ </tgroup> </table> </para> - <example> - <title>Ejemplo de <function>ftp_set_option</function></title> - <programlisting role="php"> + <para> + <example> + <title>Ejemplo de <function>ftp_set_option</function></title> + <programlisting role="php"> <![CDATA[ <?php // Establecer el tiempo de espera de red a 10 segundos ftp_set_option($id_con, FTP_TIMEOUT_SEC, 10); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> Vea tambi&eacute;n <function>ftp_get_option</function>. </para> Index: phpdoc-es/reference/ftp/functions/ftp-site.xml diff -u phpdoc-es/reference/ftp/functions/ftp-site.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-site.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-site.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-site.xml Fri Dec 19 16:18:27 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.3 --> <refentry id="function.ftp-site"> <refnamediv> @@ -21,9 +21,10 @@ otro. Son &uacute;tiles para la gesti&oacute;n de cosas como permisos de archivos y membres&iacute;as de grupos. </para> - <example> - <title>Env&iacute;o de un comando SITE a un servidor ftp</title> - <programlisting role="php"> + <para> + <example> + <title>Env&iacute;o de un comando SITE a un servidor ftp</title> + <programlisting role="php"> <![CDATA[ <?php /* Conectarse con el servidor FTP */ @@ -42,8 +43,9 @@ } ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> &return.success; </para> Index: phpdoc-es/reference/ftp/functions/ftp-ssl-connect.xml diff -u phpdoc-es/reference/ftp/functions/ftp-ssl-connect.xml:1.1 phpdoc-es/reference/ftp/functions/ftp-ssl-connect.xml:1.2 --- phpdoc-es/reference/ftp/functions/ftp-ssl-connect.xml:1.1 Thu Dec 4 03:56:40 2003 +++ phpdoc-es/reference/ftp/functions/ftp-ssl-connect.xml Fri Dec 19 16:18:27 2003 @@ -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.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <refentry id="function.ftp-ssl-connect"> <refnamediv> @@ -34,6 +34,28 @@ momento con <function>ftp_set_option</function> y <function>ftp_get_option</function>. </para> + <para> + <example> + <title>Ejemplo de <function>ftp_ssl_connect</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// establecer una conexion ssl basica +$id_con = ftp_ssl_connect($servidor_ftp); + +// iniciar sesion con nombre de usuario y contrasenya +$resultado_login = ftp_login($id_con, $nombre_usuario_ftp, $contrasenya_ftp); + +echo ftp_pwd($id_con); // / + +// cerrar la conexion ssl +ftp_close($id_con); +?> +]]> + </programlisting> + </example> + </para> <note> <title>Porqu&eacute; esta funci&oacute;n puede no existir</title> <para> Index: phpdoc-es/reference/pcre/constants.xml diff -u phpdoc-es/reference/pcre/constants.xml:1.3 phpdoc-es/reference/pcre/constants.xml:1.4 --- phpdoc-es/reference/pcre/constants.xml:1.3 Mon Dec 15 01:45:18 2003 +++ phpdoc-es/reference/pcre/constants.xml Fri Dec 19 16:18:28 2003 @@ -1,6 +1,6 @@ <?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 --> <section id="pcre.constants"> &reftitle.constants; &extension.constants; Index: phpdoc-es/reference/readline/reference.xml diff -u phpdoc-es/reference/readline/reference.xml:1.4 phpdoc-es/reference/readline/reference.xml:1.5 --- phpdoc-es/reference/readline/reference.xml:1.4 Mon Dec 15 22:10:04 2003 +++ phpdoc-es/reference/readline/reference.xml Fri Dec 19 16:18:29 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <reference id="ref.readline"> <title>GNU Readline</title> <titleabbrev>Readline</titleabbrev> Index: phpdoc-es/reference/sockets/reference.xml diff -u phpdoc-es/reference/sockets/reference.xml:1.3 phpdoc-es/reference/sockets/reference.xml:1.4 --- phpdoc-es/reference/sockets/reference.xml:1.3 Mon Dec 15 22:10:06 2003 +++ phpdoc-es/reference/sockets/reference.xml Fri Dec 19 16:18:30 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.15 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.16 Maintainer: lboshell Status: ready --> <reference id="ref.sockets"> <title>Funciones de Socket</title> <titleabbrev>Sockets</titleabbrev> Index: phpdoc-es/reference/stream/constants.xml diff -u phpdoc-es/reference/stream/constants.xml:1.1 phpdoc-es/reference/stream/constants.xml:1.2 --- phpdoc-es/reference/stream/constants.xml:1.1 Wed Dec 17 23:38:36 2003 +++ phpdoc-es/reference/stream/constants.xml Fri Dec 19 16:18:30 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <section id="stream.constants"> &reftitle.constants; &extension.constants; Index: phpdoc-es/reference/stream/reference.xml diff -u phpdoc-es/reference/stream/reference.xml:1.1 phpdoc-es/reference/stream/reference.xml:1.2 --- phpdoc-es/reference/stream/reference.xml:1.1 Wed Dec 17 23:38:36 2003 +++ phpdoc-es/reference/stream/reference.xml Fri Dec 19 16:18:30 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.19 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.20 Maintainer: lboshell Status: ready --> <reference id="ref.stream"> <title>Funciones de secuencia</title> <titleabbrev>Secuencias</titleabbrev> Index: phpdoc-es/reference/url/functions/http-build-query.xml diff -u phpdoc-es/reference/url/functions/http-build-query.xml:1.1 phpdoc-es/reference/url/functions/http-build-query.xml:1.2 --- phpdoc-es/reference/url/functions/http-build-query.xml:1.1 Wed Dec 10 00:03:21 2003 +++ phpdoc-es/reference/url/functions/http-build-query.xml Fri Dec 19 16:18:31 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <refentry id="function.http-build-query"> <refnamediv> <refname>http_build_query</refname> Index: phpdoc-es/reference/var/ini.xml diff -u phpdoc-es/reference/var/ini.xml:1.1 phpdoc-es/reference/var/ini.xml:1.2 --- phpdoc-es/reference/var/ini.xml:1.1 Fri Oct 10 04:57:41 2003 +++ phpdoc-es/reference/var/ini.xml Fri Dec 19 16:18:32 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <section id="var.configuration"> &reftitle.runtime; &extension.runtime;
« previous php.doc.es (#453) next »