note 10230 added to curl_setopt
| From: | saltysnail at softhome dot net | Date: | Wed, 20 Dec 2000 09:46:00 +0000 |
| Subject: | note 10230 added to curl_setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8945@lists.php.net to get a copy of this message | ||
To return the curl results to a variable,
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec ($ch);
curl_close ($ch);
http://www.php.net/manual/function.curl-setopt.php