note 75244 added to function.curl-copy-handle
| From: | Andrew at osu1 dot php dot net | Date: | Sun, 20 May 2007 06:39:12 +0000 |
| Subject: | note 75244 added to function.curl-copy-handle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126712@lists.php.net to get a copy of this message | ||
You can use it for some kind of templates:
<?php
$ch = array();
$ch[0] = curl_init();
curl_setopt($ch[0], CURLOPT_URL, 'http://beengo.net/');
curl_setopt($ch[0], CURLOPT_HEADER, 0);
curl_setopt($ch[0], CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch[0], CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch[0], CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
$ch[1] = curl_copy_handle($ch[0]);
curl_setopt($ch[1], CURLOPT_URL, 'http://beengo.net/cells/list');
$ch[2] = curl_copy_handle($ch[0]);
curl_setopt($ch[2], CURLOPT_URL, 'http://beengo.net/cells/list?q=travel');
/* And so on, when you need to get number of pages with same parameters... */
?>
----
Server IP: 69.147.83.197
Probable Submitter: 194.125.225.121
----
Manual Page -- http://www.php.net/manual/en/function.curl-copy-handle.php
Edit -- https://master.php.net/note/edit/75244
Del: integrated -- https://master.php.net/note/delete/75244/integrated
Del: useless -- https://master.php.net/note/delete/75244/useless
Del: bad code -- https://master.php.net/note/delete/75244/bad+code
Del: spam -- https://master.php.net/note/delete/75244/spam
Del: non-english -- https://master.php.net/note/delete/75244/non-english
Del: in docs -- https://master.php.net/note/delete/75244/in+docs
Del: other reasons-- https://master.php.net/note/delete/75244
Reject -- https://master.php.net/note/reject/75244
Search -- https://master.php.net/manage/user-notes.php