note 10230 deleted from function.curl-setopt by dave
| From: | dave@php.net | Date: | Thu, 12 Aug 2004 05:07:39 +0000 |
| Subject: | note 10230 deleted from function.curl-setopt by dave | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74521@lists.php.net to get a copy of this message | ||
Note Submitter: saltysnail@softhome.net
----
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);