matroz Fri Mar 8 18:13:57 2002 EDT
Modified files:
/phpdoc/he/functions curl.xml
Log:
more changes
Index: phpdoc/he/functions/curl.xml
diff -u phpdoc/he/functions/curl.xml:1.2 phpdoc/he/functions/curl.xml:1.3
--- phpdoc/he/functions/curl.xml:1.2 Fri Mar 8 15:38:42 2002
+++ phpdoc/he/functions/curl.xml Fri Mar 8 18:13:57 2002
@@ -1,49 +1,46 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: matty Status: working -->
+<!-- EN-Revision: 1.3 Maintainer: matty Status: working -->
<reference id="ref.curl">
<title>CURL, Client URL Library Functions</title>
<titleabbrev>CURL</titleabbrev>
<partintro id="curl.partintro">
<para>
- PHP supports libcurl, a library created by Daniel Stenberg, that
- allows you to connect and communicate to many different types of
- servers with many different types of protocols. libcurl currently
- supports the http, https, ftp, gopher, telnet, dict, file, and
- ldap protocols. libcurl also supports HTTPS certificates, HTTP
- POST, HTTP PUT, FTP uploading (this can also be done with PHP's
+ PHP ����� � libcurl, ����� ������ �� ��� Daniel Stenberg, �������
+ ������ ������ �� ����� ����� �� ����� �����������.
+ libcurl ����� ���� ����������� http, https, ftp, gopher, telnet, dict,
+ file, � ldap.
+ libcurl , ��� �� ����� � HTTPS certificates, HTTP
+ POST, HTTP PUT, FTP uploading (����� ������ �� ����� PHP's
ftp extension), HTTP form based upload, proxies, cookies, and
user+password authentication.
</para>
<para>
- In order to use the CURL functions you need to install the <ulink
- url="&url.curl;">CURL</ulink> package. PHP requires that you use
- CURL 7.0.2-beta or higher. PHP will not work with any version of
- CURL below version 7.0.2-beta.
+ �� ��� ������ � CURL functions ���� ������ �� ����� �<ulink
+ url="&url.curl;">CURL</ulink>. PHP ������ ���� ������ � CURL 7.0.2-beta
+ �����. PHP �� ����� �� �� ����� �� CURL ���� ������ 7.0.2-beta.
</para>
<para>
- To use PHP's CURL support you must also compile PHP <option
- role="configure">--with-curl[=DIR]</option> where DIR is the
- location of the directory containing the lib and include
- directories. In the "include" directory there should be a folder
- named "curl" which should contain the easy.h and curl.h files.
- There should be a file named "libcurl.a" located in the "lib"
- directory.
+ ��� ������ � PHP's CURL support ���� ����� �� PHP <option
+ role="configure">--with-curl[=DIR]</option> ���� DIR ��� ������
+ �� ������ ������ �� ������ � lib ������� � include.
+ ������� "include" ���� ����� ������ ��� "curl"
+ ������ ����� �� ������ easy.h � curl.h.
+ ���� ��� "libcurl.a" ���� ����� ��� ������ "lib".
</para>
<para>
- These functions have been added in PHP 4.0.2.
+ �������� ���� ������� ������ PHP 4.0.2.
</para>
<para>
- Once you've compiled PHP with CURL support, you can begin using
- the curl functions. The basic idea behind the CURL functions is
- that you initialize a CURL session using the
- <function>curl_init</function>, then you can set all your
- options for the transfer via the <function>curl_exec</function>
- and then you finish off your session using the
- <function>curl_close</function>. Here is an example that uses
- the CURL functions to fetch the PHP homepage into a file:
+ ���� � PHP ����� �� CURL support, ���� ������
+ ������ ��������� curl. ������ ������ ����� ������ �������� CURL
+ ��� ������� CURL session ����� <function>curl_init</function>, ��� ����
+ ����� �� �� �������� ������ ����� ��� <function>curl_exec</function>
+ ,���� ��� ���� � session ��� ��� ����� � <function>curl_close</function>.
+ ������ ����� ����� ����� ��������� CURL �� ��� ����� �� ����
+ ���� �� PHP ���� ����:
<example>
- <title>Using PHP's CURL module to fetch the PHP homepage</title>
+ <title>����� � PHP's CURL module �� ��� ����� �� ���� ���� �� PHP</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -67,10 +64,10 @@
<refentry id="function.curl-init">
<refnamediv>
<refname>curl_init</refname>
- <refpurpose>Initialize a CURL session</refpurpose>
+ <refpurpose>����� �� CURL session</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>�����</title>
<methodsynopsis>
<type>int</type><methodname>curl_init</methodname>
<methodparam choice="opt"><type>string</type><parameter>
@@ -78,17 +75,17 @@
</parameter></methodparam>
</methodsynopsis>
<para>
- The <function>curl_init</function> will initialize a new session
- and return a CURL handle for use with the
- <function>curl_setopt</function>, <function>curl_exec</function>,
- and <function>curl_close</function> functions. If the optional
- <parameter>url</parameter> parameter is supplied then the
- CURLOPT_URL option will be set to the value of the parameter.
- You can manually set this using the
- <function>curl_setopt</function> function.
+ �������� <function>curl_init</function> ������ session
+ ��� ������� ����� CURL ������ �� <function>curl_setopt</function>,
+ <function>curl_exec</function>,� <function>curl_close</function>
+ functions.
+ �� ������ ���������� <parameter>url</parameter> ����� �������� ���
+ ������� CURLOPT_URL ���� �� ��� ������ ����� �������.
+ ���� ����� ����� ����� �� ���� �� ������ �� ��� ����� ��������
+ <function>curl_setopt</function>.
<example>
<title>
- Initializing a new CURL session and fetching a webpage
+ ����� �� CURL session ����� �� ����
</title>
<programlisting role="php">
<![CDATA[
@@ -107,7 +104,7 @@
</example>
</para>
<para>
- See also: <function>curl_close</function>,
+ ��� ��: <function>curl_close</function>,
<function>curl_setopt</function>
</para>
</refsect1>
@@ -116,10 +113,10 @@
<refentry id="function.curl-setopt">
<refnamediv>
<refname>curl_setopt</refname>
- <refpurpose>Set an option for a CURL transfer</refpurpose>
+ <refpurpose>��� �������� ������ ���� �� CURL</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>�����</title>
<methodsynopsis>
<type>bool</type><methodname>curl_setopt</methodname>
<methodparam><type>int</type><parameter>ch</parameter></methodparam>
@@ -127,86 +124,79 @@
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
- The <function>curl_setopt</function> function will set options
- for a CURL session identified by the <parameter>ch</parameter>
- parameter. The <parameter>option</parameter> parameter is the
- option you want to set, and the <parameter>value</parameter> is
- the value of the option given by the
- <parameter>option</parameter>.
+ �������� <function>curl_setopt</function> ������ ����� �� ���������
+ �� CURL session ������ �� ��� ������ <parameter>ch</parameter>.
+ <parameter>option</parameter> ��� ������� ���� ���� �����,
+ �� <parameter>value</parameter> ��� ���� �� ������� ������ ��
+ ��� <parameter>option</parameter>.
</para>
<para>
- The <parameter>value</parameter> should be a long for the
- following options (specified in the <parameter>option</parameter>
- parameter):
+ � <parameter>value</parameter> ���� ����� ���� long ����
+ �������� ����� (������� ������ <parameter>option</parameter>):
<itemizedlist>
<listitem>
<simpara>
- <parameter>CURLOPT_INFILESIZE</parameter>: When you are
- uploading a file to a remote site, this option should be used
- to tell PHP what the expected size of the infile will be.
+ <parameter>CURLOPT_INFILESIZE</parameter>: ���� ����� ����
+ ���� �����, �� ������ ������� �� �� ��� ����� � PHP
+ ��� ����� ������ �� ����� ������ �����.
</simpara>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_VERBOSE</parameter>: Set this option to a
- non-zero value if you want CURL to report everything that is
- happening.
+ <parameter>CURLOPT_VERBOSE</parameter>: ��� �� ���� ���� �����
+ ���� �� �� ����� � CURL ����� �� �� ��� ����.
</simpara>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_HEADER</parameter>: Set this option to a
- non-zero value if you want the header to be included in the
- output.
+ <parameter>CURLOPT_HEADER</parameter>: ��� �� ���� ���� �����
+ ���� �� �� ����� � header ����� ����� �����.
</simpara>
</listitem>
<listitem>
<para>
- <parameter>CURLOPT_NOPROGRESS</parameter>: Set this option to
- a non-zero value if you don't want PHP to display a progress
- meter for CURL transfers
+ <parameter>CURLOPT_NOPROGRESS</parameter>: ��� �� ���� ���� �����
+ ���� �� ��� ��� ����� � PHP ���� progress meter ���� CURL transfers
<note>
<simpara>
- PHP automatically sets this option to a non-zero parameter,
- this should only be changed for debugging purposes.
+ PHP ����� ����� ������� �� ���� ���� ����� ����,
+ �� ����� ��� �� ������ debugging ����.
</simpara>
</note>
</para>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_NOBODY</parameter>: Set this option to a
- non-zero value if you don't want the body included with the
- output.
+ <parameter>CURLOPT_NOBODY</parameter>: ��� �� ���� ���� �����
+ ���� �� �� ����� � body ����� ����� �����.
</simpara>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_FAILONERROR</parameter>: Set this option to
- a non-zero value if you want PHP to fail silently if the HTTP
- code returned is greater than 300. The default behavior is
- to return the page normally, ignoring the code.
+ <parameter>CURLOPT_FAILONERROR</parameter>: ��� �� ���� ���� �����
+ ���� �� ������ � PHP ���� ����� ���,��� ������ �����, ��
+ ���� ������ �� ��� � HTTP ���� �300.
+ ����� ����� ��� ������ �� ��� ����� ���� ��� ��� ������� �� ����.
</simpara>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_UPLOAD</parameter>: Set this option to a
- non-zero value if you want PHP to prepare for an upload.
+ <parameter>CURLOPT_UPLOAD</parameter>: ��� �� ���� ���� �����
+ ���� �� ������ � PHP ������ ������ �����.
</simpara>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_POST</parameter>: Set this option to a
- non-zero value if you want PHP to do a regular HTTP POST.
- This POST is a normal application/x-www-form-urlencoded kind,
- most commonly used by HTML forms.
+ <parameter>CURLOPT_POST</parameter>: ��� �� ���� ���� �����
+ ���� �� ������ � PHP ���� HTTP POST ����.
+ POST ���� �� ��� ���� application/x-www-form-urlencoded,
+ ����� ������ �� ��� HTML forms.
</simpara>
</listitem>
<listitem>
<simpara>
- <parameter>CURLOPT_FTPLISTONLY</parameter>: Set this option to
- a non-zero value and PHP will just list the names of an FTP
- directory.
+ <parameter>CURLOPT_FTPLISTONLY</parameter>: ��� �� ���� ���� �����
+ ���� �� ������ � PHP ���� �� �� ���� ������ � FTP.
</simpara>
</listitem>
<listitem>