svn: /phpdoc/es/trunk/language/ context/socket.xml context.xml control-structures.xml

From: Date: Sun, 14 Feb 2010 22:58:01 +0000
Subject: svn: /phpdoc/es/trunk/language/ context/socket.xml context.xml control-structures.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-2066@lists.php.net to get a copy of this message
yago Sun, 14 Feb 2010 22:58:01 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295074 Log: Translated file. Changed paths: A phpdoc/es/trunk/language/context/ A phpdoc/es/trunk/language/context/socket.xml A phpdoc/es/trunk/language/context.xml A phpdoc/es/trunk/language/control-structures.xml Added: phpdoc/es/trunk/language/context/socket.xml =================================================================== --- phpdoc/es/trunk/language/context/socket.xml (rev 0) +++ phpdoc/es/trunk/language/context/socket.xml 2010-02-14 22:58:01 UTC (rev 295074) @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 288876 $ --> +<!-- EN-Revision: 288721 Maintainer: lboshell Status: ready --> + +<refentry xml:id="context.socket" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> + <refnamediv> + <refname>Opciones de contexto de sockets</refname> + <refpurpose>Listado do opciones de contexto de sockets</refpurpose> + </refnamediv> + + <refsect1 role="description"><!-- {{{ --> + &reftitle.description; + <para> + Las opciones de contexto de sockets están disponibles para todas las + envolturas que trabajan sobre sockets, como <literal>tcp</literal>, + <literal>http</literal> y <literal>ftp</literal>. + </para> + </refsect1><!-- }}} --> + + <refsect1 role="options"><!-- {{{ --> + &reftitle.options; + <para> + <variablelist> + <varlistentry xml:id="context.socket.bindto"> + <term><parameter>bindto</parameter></term> + <listitem> + <para> + Usada para especificar la dirección IP (ya sea IPv4 o IPv6) y/o el + número de puerto que PHP usará para acceder a la red. La sintaxis es + <literal>ip:puerto</literal>. Definir el número IP o de puerto como + <literal>0</literal> producirá que el sistema lo elija por usted. + </para> + <note> + <para> + Dado que FTP crea dos conexiones de socket durante la operación + normal, no es posible especificar el número de puerto con esta + opción. + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1><!-- }}} --> + + <refsect1 role="changelog"><!-- {{{ --> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.1.0</entry> + <entry> + Se agregó <literal>bindto</literal>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1><!-- }}} --> + + <refsect1 role="examples"><!-- {{{ --> + &reftitle.examples; + <para> + <example xml:id="context.socket.example-bindto"><!-- {{{ --> + <title>Ejemplo de uso básico de <parameter>bindto</parameter></title> + <programlisting role="php"> +<![CDATA[ +<?php +// conectarse a internet usando la IP '192.168.0.100' +$opciones = array( + 'socket' => array( + 'bindto' => '192.168.0.100:0', + ), +); + + +// conectarse a internet usando la IP '192.168.0.100' y el puerto '7000' +$opciones = array( + 'socket' => array( + 'bindto' => '192.168.0.100:7000', + ), +); + + +// conectarse a internet usando el puerto '7000' +$opciones = array( + 'socket' => array( + 'bindto' => '0:7000', + ), +); + + +// crear el contexto... +$contexto = stream_context_create($opciones); + +// ...y usarlo para recuperar los datos +echo file_get_contents('http://www.example.com', false, $contexto); + +?> +]]> + </programlisting> + </example><!-- }}} --> + </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:"~/.phpdoc/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 +--> + Added: phpdoc/es/trunk/language/context.xml =================================================================== --- phpdoc/es/trunk/language/context.xml (rev 0) +++ phpdoc/es/trunk/language/context.xml 2010-02-14 22:58:01 UTC (rev 295074) @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 288876 $ --> +<!-- EN-Revision: 288721 Maintainer: lboshell Status: ready --> + +<reference xml:id="context" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Opciones de contexto y parámetros</title> + + <partintro> + <para> + PHP ofrece varias opciones y parámetros de contexto que pueden ser usados + con todas las envolturas del sistema de archivos y las secuencias. El + contexto es creado con <function>stream_context_create</function>. Las + opciones son definidas con <function>stream_context_set_option</function> + y los parámetros con <function>stream_context_set_params</function>. + </para> + </partintro> + + &language.context.socket; + &language.context.http; + &language.context.ftp; + &language.context.ssl; + &language.context.curl; + &language.context.phar; + &language.context.parameters; + +</reference> + +<!-- 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:"~/.phpdoc/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 +--> + Added: phpdoc/es/trunk/language/control-structures.xml =================================================================== --- phpdoc/es/trunk/language/control-structures.xml (rev 0) +++ phpdoc/es/trunk/language/control-structures.xml 2010-02-14 22:58:01 UTC (rev 295074) @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 288721 $ --> +<!-- EN-Revision: 288721 Maintainer: yago Status: ready --> +<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Estructuras de Control</title> + + <sect1 xml:id="control-structures.intro"> + <title>Introducción</title> + <simpara> + Todo script PHP está construido en base a una serie de sentencias. Una + sentencia puede ser una asignación, una llamada de función, un ciclo, una + sentencia condicional o incluso una sentencia que no hace nada (una + sentencia vacía). Las sentencias generalmente finalizan con un + punto-y-coma. Adicionalmente, las sentencias pueden agruparse en un + conjunto de sentencias, encapsulándolas entre corchetes. Un grupo de + sentencias es una sentencia por sí misma también. Los diferentes tipos de + sentencias son descritos en este capítulo. + </simpara> + </sect1> + + &language.control-structures.if; + &language.control-structures.else; + &language.control-structures.elseif; + &language.control-structures.alternative-syntax; + &language.control-structures.while; + &language.control-structures.do-while; + &language.control-structures.for; + &language.control-structures.foreach; + &language.control-structures.break; + &language.control-structures.continue; + &language.control-structures.switch; + &language.control-structures.declare; + &language.control-structures.return; + &language.control-structures.require; + &language.control-structures.include; + &language.control-structures.require-once; + &language.control-structures.include-once; + &language.control-structures.goto; + +</chapter> + +<!-- 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:"~/.phpdoc/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 (#2066) next »