note 108390 rejected from function.curl-setopt by danbrown
| From: | danbrown@php.net | Date: | Sun, 22 Apr 2012 16:09:38 +0000 |
| Subject: | note 108390 rejected from function.curl-setopt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187284@lists.php.net to get a copy of this message | ||
Note Submitter: rha2180 at yahoo dot com
----
Hi I using this code:
<?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, false);
// grab URL and pass it to the browser
$result = curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
echo $result;
?>
And it works but I keep getting the resource number (1) at the end of my result. Does anyone know
how to stop that from happening?
Thanks,
Robert