luk             Thu Jun 13 18:40:52 2002 EDT

  Added files:                 
    /phpdoc-cs/reference/network        reference.xml 
    /phpdoc-cs/reference/network/functions      checkdnsrr.xml closelog.xml 
                                                debugger-off.xml 
                                                debugger-on.xml 
                                                define-syslog-variables.xml 
                                                fsockopen.xml 
  Log:
  
  
  

Index: phpdoc-cs/reference/network/reference.xml
+++ phpdoc-cs/reference/network/reference.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->
 <reference id="ref.network">
  <title>Síťové funkce</title>
  <titleabbrev>Síť</titleabbrev>

&reference.network.functions;

 </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:"../manual.ced"
 sgml-exposed-tags:nil
 sgml-local-catalogs:nil
 sgml-local-ecat-files:nil
 End:
 -->

Index: phpdoc-cs/reference/network/functions/checkdnsrr.xml
+++ phpdoc-cs/reference/network/functions/checkdnsrr.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.checkdnsrr">
   <refnamediv>
    <refname>checkdnsrr</refname>
    <refpurpose>
     Ověří DNS záznamy odpovídající danému názvu počítače na Internetu nebo
     jeho IP adrese.
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>checkdnsrr</methodname>
      <methodparam><type>string</type><parameter>host</parameter></methodparam>
      <methodparam 
choice="opt"><type>string</type><parameter>type</parameter></methodparam>
     </methodsynopsis>
    <simpara>
     Prohledá DNS na záznamy typu <parameter>type</parameter>, odpovídající
     názvu <parameter>host</parameter>. Vrací &true;, pokud najde nějaké
     záznamy a &false;, pokud nic nenajde nebo nastane chyba.
    </simpara>
    <simpara>
     <parameter>type</parameter> může být jeden z těchto: A, MX, NS, SOA,
     PTR, CNAME, or ANY.  Implicitní je MX.
    </simpara>
    <simpara>
     <parameter>Host</parameter> může být jak IP adresa (v "tečkové" notaci),
     tak název stroje.
    </simpara>
    &note.no-windows;
    <simpara>
     Viz také <function>getmxrr</function>,
     <function>gethostbyaddr</function>,
     <function>gethostbyname</function>,
     <function>gethostbynamel</function>, a manuálovou stránku named(8).
    </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:
 -->

Index: phpdoc-cs/reference/network/functions/closelog.xml
+++ phpdoc-cs/reference/network/functions/closelog.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.closelog">
   <refnamediv>
    <refname>closelog</refname>
    <refpurpose>Zavře spojení do systémového protokolu</refpurpose> 
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>closelog</methodname>
      <void/>
     </methodsynopsis>
    <para>
     <function>closelog</function> zavře deskriptor použitý k zápisu do
     systémového protokolu. Použití
     <function>closelog</function> je nepovinné.
    </para>
    <para>
     Viz také <function>define_syslog_variables</function>,
     <function>syslog</function> a
     <function>openlog</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:
 -->

Index: phpdoc-cs/reference/network/functions/debugger-off.xml
+++ phpdoc-cs/reference/network/functions/debugger-off.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.debugger-off">
   <refnamediv>
    <refname>debugger_off</refname>
    <refpurpose>Vypne vnitřní PHP debugger</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>debugger_off</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Vypne vnitřní PHP debugger. Na debuggeru stále probíhá vývoj.
    </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:
 -->

Index: phpdoc-cs/reference/network/functions/debugger-on.xml
+++ phpdoc-cs/reference/network/functions/debugger-on.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.debugger-on">
   <refnamediv>
    <refname>debugger_on</refname>
    <refpurpose>Zapne vnitřní PHP debugger</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>debugger_on</methodname>
      <methodparam><type>string</type><parameter>address</parameter></methodparam>
     </methodsynopsis>
    <para>
     Zapne vnitřní PHP debugger s připojením na
     <parameter>address</parameter>.  Na debuggeru stále probíhá vývoj.
    </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:
 -->

Index: phpdoc-cs/reference/network/functions/define-syslog-variables.xml
+++ phpdoc-cs/reference/network/functions/define-syslog-variables.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.define-syslog-variables">
   <refnamediv>
    <refname>define_syslog_variables</refname>
    <refpurpose>Inicializuje všechny konstanty související se systémovým
    protokolem</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>void</type><methodname>define_syslog_variables</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Inicializuje všechny konstanty použité ve funkcích systémového protokolu.
    </para>
    <para>
     Viz také <function>openlog</function>,
     <function>syslog</function> a
     <function>closelog</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:
 -->

Index: phpdoc-cs/reference/network/functions/fsockopen.xml
+++ phpdoc-cs/reference/network/functions/fsockopen.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->

  <refentry id="function.fsockopen">
   <refnamediv>
    <refname>fsockopen</refname>
    <refpurpose>
     Otevře socketové spojení v internetové nebo unixové doméně.
    </refpurpose> 
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>fsockopen</methodname>
      <methodparam><type>string</type><parameter>hostname</parameter></methodparam>
      <methodparam><type>int</type><parameter>port</parameter></methodparam>
      <methodparam 
choice="opt"><type>int</type><parameter>errno</parameter></methodparam>
      <methodparam 
choice="opt"><type>string</type><parameter>errstr</parameter></methodparam>
      <methodparam 
choice="opt"><type>float</type><parameter>timeout</parameter></methodparam>
     </methodsynopsis>
    <para>
     Iniciuje proudové spojení v internetové (AF_INET, za použití TCP nebo
     UDP) nebo unixové (AF_UNIX) doméně. Pro internetovou doménu otevře TCP
     kanál na stroj <parameter>hostname</parameter> na port
     <parameter>port</parameter>.  <parameter>hostname</parameter> v takovém
     případě může být plně určené doménové jméno nebo IP adresa. Pro spojení
     UDP musíte explicitně specifikovat protokol předřazením
     '<literal>udp://</literal>' před <parameter>hostname</parameter>.
     V unixové doméně se <parameter>hostname</parameter> použije jako cesta
     k socketu <parameter>port</parameter> se pak musí nastavit na 0.
     Nepovinný parametr <parameter>timeout</parameter> se může použít
     k nastavení time-outu pro systémové volání connect.
    </para>
    <para>
     Od PHP 4.3.0, pokud jste PHP zkompilovali s podporou OpenSSL, můžete
     před <parameter>hostname</parameter> předřadit
     '<literal>ssl://</literal>' nebo '<literal>tls://</literal>' pro použití
     SSL nebo TSL spojení na vzdálený stroj přes TCP/IP.     
    </para>
    <para>
     <function>fsockopen</function> vrací deskriptor souboru, který lze
     použít s jinými souborovými funkcemi (např.
     <function>fgets</function>, <function>fgetss</function>,
     <function>fputs</function>, <function>fclose</function> a
     <function>feof</function>).
    </para>
    <para>
     Pokud volání selže, vrací funkce &false;, a pokud jsou přítomny nepovinné
     parametry <parameter>errno</parameter> a <parameter>errstr</parameter>,
     budou nastaveny na aktuální chybovou úroveň v systémovém volání
     <literal>connect()</literal>. Je-li vrácená hodnota v
     <parameter>errno</parameter> rovna <literal>0</literal> a funkce vrátila
     &false;, znamená to, že chyba nastala před voláním
     <literal>connect()</literal>. Nejčastěji je to kvůli problému při
     inicializaci socketu. Uvědomte si, že argumenty
     <parameter>errno</parameter> a <parameter>errstr</parameter> se vždy
     předávají odkazem.
    </para>
    <para>
     V závislosti na prostředí nemusí být k dispozici unixová doména nebo
     volitelný parametr timeout.
    </para>
    <para>
     Socket se implicitně otevře v blokujícím režimu. Do neblokujícího
     režimu ho můžete přepnout použitím
     <function>socket_set_blocking</function>.
     <example>
      <title><function>fsockopen</function> Příklad</title>
      <programlisting role="php">
<![CDATA[
<?php
$fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)<br>\n";
} else {
    fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");
    while (!feof($fp)) {
        echo fgets ($fp,128);
    }
    fclose ($fp);
}
?>
]]>
      </programlisting>
     </example>
     Další (níže uvedený) příklad ukazuje, jak získat datum a čas z UDP
     služby "daytime" (port 13) na vašem vlastním počítači.
     <example>
     <title>Použití UDP spojení</title>
     <programlisting role="php">
<![CDATA[
<?php
$fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr);
if (!$fp) {
    echo "CHYBA: $errno - $errstr<br>\n";
} else {
    fwrite($fp,"\n");
    echo fread($fp, 26);
    fclose($fp);
}
?>
]]>
     </programlisting>
     </example>
     <note>
      <para>Parametr timeout by zaveden v PHP 3.0.9 a podpora UDP v PHP 4.
      </para>
     </note>
     Viz také <function>pfsockopen</function>, 
     <function>socket_set_blocking</function>,
     <function>socket_set_timeout</function>, <function>fgets</function>,
     <function>fgetss</function>, <function>fputs</function>,
     <function>fclose</function>, <function>feof</function> a
     <link linkend="ref.curl">rozšíření Curl</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:
 -->

Reply via email to