goba Fri Apr 19 11:06:05 2002 EDT
Modified files:
/phpdoc/en/reference/curl reference.xml
Log:
Applied new structure
Index: phpdoc/en/reference/curl/reference.xml
diff -u phpdoc/en/reference/curl/reference.xml:1.2
phpdoc/en/reference/curl/reference.xml:1.3
--- phpdoc/en/reference/curl/reference.xml:1.2 Mon Apr 15 14:56:31 2002
+++ phpdoc/en/reference/curl/reference.xml Fri Apr 19 11:06:04 2002
@@ -1,50 +1,66 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<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
- 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.
- </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.
- </para>
- <para>
- These functions have been added in 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:
- <example>
- <title>Using PHP's CURL module to fetch the PHP homepage</title>
- <programlisting role="php">
+ <partintro>
+ <section id="curl.intro">
+ &reftitle.intro;
+ <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
+ ftp extension), HTTP form based upload, proxies, cookies, and
+ user+password authentication.
+ </para>
+ <para>
+ These functions have been added in PHP 4.0.2.
+ </para>
+ </section>
+
+ <section id="curl.requirements">
+ &reftitle.required;
+ <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.
+ </para>
+ </section>
+
+ <section id="curl.installation">
+ &reftitle.install;
+ <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.
+ </para>
+ </section>
+
+ &reference.curl.constants;
+
+ <section id="curl.examples">
+ &reftitle.examples;
+ <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 example.com homepage into a file:
+ <example>
+ <title>Using PHP's CURL module to fetch the example.com homepage</title>
+ <programlisting role="php">
<![CDATA[
<?php
@@ -59,9 +75,10 @@
fclose ($fp);
?>
]]>
- </programlisting>
- </example>
- </para>
+ </programlisting>
+ </example>
+ </para>
+ </section>
</partintro>
&reference.curl.functions;