shlomi          Thu Jan 24 14:07:17 2002 EDT

  Added files:                 
    /phpdoc/he/features remote-files.xml 
  Log:
  initial translation
  

Index: phpdoc/he/features/remote-files.xml
+++ phpdoc/he/features/remote-files.xml
<?xml version="1.0" encoding="iso-8859-8-i"?>
<!-- $Revision: 1.1 $ -->
 <chapter id="features.remote-files">
  <title>����� ������ �������</title>

  <para>
   �� ������ �&quot;URL fopen wrapper&quot; �����
   (��� ����� ������ ���� ��� �� ����� ������� �� ��� �
   <option>--disable-url-fopen-wrapper</option> ������� �- configure (�� ���� 4.0.3)
   �� ����� �� ����� �-<parameter>allow_url_fopen</parameter> �-off ����� php.ini
   (������� ����� ����)), 
   ���� ������ ������� HTTP �-FTP ������ ���� ��������� ������� �� ����
   ������, ���� ������� <function>require</function>
   �- <function>include</function>.
  </para>
  <para>
   <note>
    <para>
     �� ���� ������ ������ ������� ������� <function>require</function>
     �- <function>include</function> ��� ����� ������.
    </para>
   </note>
  </para>
  <para>
   ������, ���� ������ ������ �� ��-��� ����� ���� ���� web �����,
   ���� �� �����, ���� �� ����� ������ ������, ������ ����� �� ������
   ����� ������� �� ���� ������ ����� ������ ���� ����� ����.
  </para>
  <para>
   <example>
    <title>���� ������ �� ���� �����</title>
    <programlisting role="php">
<![CDATA[
<?php
$file = fopen ("http://www.php.net/";, "r");
if (!$file) {
    echo "<p>Unable to open remote file.\n";
    exit;
}
while (!feof ($file)) {
    $line = fgets ($file, 1024);
    /* This only works if the title and its tags are on one line */
    if (eregi ("<title>(.*)</title>", $line, $out)) {
        $title = $out[1];
        break;
    }
}
fclose($file);
?>
]]>
    </programlisting>
   </example>
  </para>
  <para>
   ���� �� ����� ������ �-FTP �� ��� ������ ���� ��� ����� ��� ������
   ����� ���� ������ ������� ������ ������ �� ����.
   ��� ������ � FTP ���� ����� ���� �-'anonymous', �� ���� �� ��
   ������ (����� ����� �� ����� ������) ������, ��� ���� 
   'ftp://user:[EMAIL PROTECTED]/path/to/file'.
   (���� ������ ����� ����� ���� ������� ������ ������ ��� HTTP ����
   ����� ���������� ������ Basic authentication ).
  </para>
  <para>
   <example>
    <title>����� ���� ���� �����</title>
    <programlisting role="php">
<![CDATA[
<?php
$file = fopen ("ftp://ftp.php.net/incoming/outputfile";, "w");
if (!$file) {
    echo "<p>Unable to open remote file for writing.\n";
    exit;
}
/* Write the data here. */
fputs ($file, "$HTTP_USER_AGENT\n");
fclose ($file);
?>
]]>  
    </programlisting>
   </example>
  </para>
  <para>
   <note>
    <para>
     ���� ������� ��� ����� ��� ����� ���� log ���� ����� �� ��� ������
         ���� ���, ������ ����� ������ �� �� ����� ����� ������ �� ����.
     ��� ���� ����� ����, ����� �-<function>syslog</function>.
    </para> 
   </note>
  </para>

 </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:"../../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
-->


Reply via email to