note 108391 added to function.curl-setopt
| From: | rha2180 at yahoo dot com | Date: | Sun, 22 Apr 2012 16:22:09 +0000 |
| Subject: | note 108391 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187285@lists.php.net to get a copy of this message | ||
OK, I got it.
<?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);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// 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;
?>
Silly question
----
Server IP: 72.55.140.6
Probable Submitter: 80.90.168.149
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/108391
Del: integrated -- https://master.php.net/note/delete/108391/integrated
Del: useless -- https://master.php.net/note/delete/108391/useless
Del: bad code -- https://master.php.net/note/delete/108391/bad+code
Del: spam -- https://master.php.net/note/delete/108391/spam
Del: non-english -- https://master.php.net/note/delete/108391/non-english
Del: in docs -- https://master.php.net/note/delete/108391/in+docs
Del: other reasons-- https://master.php.net/note/delete/108391
Reject -- https://master.php.net/note/reject/108391
Search -- https://master.php.net/manage/user-notes.php