Hello!
Watch your whitespace, no tabs, single space indention. And
use the PEAR Coding Standard (' versus "). And Put the
<title> on a single line. That's all for now :)
Regards,
Philip
On Wed, 15 Jun 2005, Tom Westcott wrote:
> Ok this is my first so be nice =)
> Please let me know if/how I screwed up.
>
> Thanks Tom
>
> [EMAIL PROTECTED] functions]$ cvs diff -u curl-copy-handle.xml
> Index: curl-copy-handle.xml
> ===================================================================
> RCS file: /repository/phpdoc/en/reference/curl/functions/curl-copy-
> handle.xml,v
> retrieving revision 1.1
> diff -u -r1.1 curl-copy-handle.xml
> --- curl-copy-handle.xml 2 May 2004 15:46:36 -0000 1.1
> +++ curl-copy-handle.xml 15 Jun 2005 20:33:26 -0000
> @@ -13,9 +13,39 @@
> <type>resource</type><methodname>curl_copy_handle</methodname>
>
> <methodparam><type>resource</type><parameter>ch</parameter></methodparam>
> </methodsynopsis>
> + <para>
> + This function copy's a cURL handle.
> + Returning a new cURL handle with the same preferences.
> + </para>
> + <para>
> + <example>
> + <title>
> + Copying a cURL handle.
> + </title>
> + <programlisting role="php">
> +<![CDATA[
> +<?php
> +// create a new curl resource
> +$ch = curl_init();
>
> - &warn.undocumented.func;
> +// set URL and other appropriate options
> +curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
> +curl_setopt($ch, CURLOPT_HEADER, 0);
>
> +// copy the handle
> +$ch2 = curl_copy_handle($ch);
> +
> +// grab URL (http://www.example.com/) and pass it to the browser
> +curl_exec($ch2);
> +
> +// close curl resources, and free up system resources
> +curl_close($ch2);
> +curl_close($ch);
> +?>
> +]]>
> + </programlisting>
> + </example>
> + </para>
> </refsect1>
> </refentry>
>