sean Fri Feb 27 00:38:22 2004 EDT
Modified files:
/phpdoc/en/reference/curl/functions curl-init.xml
Log:
Commented example
http://cvs.php.net/diff.php/phpdoc/en/reference/curl/functions/curl-init.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/curl/functions/curl-init.xml
diff -u phpdoc/en/reference/curl/functions/curl-init.xml:1.4
phpdoc/en/reference/curl/functions/curl-init.xml:1.5
--- phpdoc/en/reference/curl/functions/curl-init.xml:1.4 Mon Dec 15 11:47:51
2003
+++ phpdoc/en/reference/curl/functions/curl-init.xml Fri Feb 27 00:38:22 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/curl.xml, last change in rev 1.1 -->
<refentry id="function.curl-init">
<refnamediv>
@@ -28,13 +28,17 @@
<programlisting role="php">
<![CDATA[
<?php
+// create a new curl resource
$ch = curl_init();
+// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
+// grab URL and pass it to the browser
curl_exec($ch);
+// close curl resource, and free up system resources
curl_close($ch);
?>
]]>