Files
2002-07-23 12:22:50 +00:00

15 lines
361 B
XML

<slide title="Basic cURL options">
<blurb>
Using cURL starts with a set of three functions, %curl_init()%,
%curl_setopt()% and %curl_exec()%.
</blurb>
<example fontsize="1.2em"><![CDATA[<?php
$ch = curl_init ('http://www.php.net/');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);
print $data;
?>]]></example>
</slide>