note 64014 deleted from function.curl-errno by aidan
| From: | aidan@php.net | Date: | Sat, 02 Sep 2006 05:56:45 +0000 |
| Subject: | note 64014 deleted from function.curl-errno by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116604@lists.php.net to get a copy of this message | ||
Note Submitter: samandavia at yahoo dot com
----
<?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);
// 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);
?>