note 76210 added to function.curl-multi-init
| From: | sergioq2000 at hotmail dot com | Date: | Thu, 05 Jul 2007 08:58:52 +0000 |
| Subject: | note 76210 added to function.curl-multi-init | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128244@lists.php.net to get a copy of this message | ||
Ejemplo de uso
<?php
/* Creación de dos recursos cURL */
$ch1 = curl_init();
$ch2 = curl_init();
/* Setea las URLs y otras opciones */
curl_setopt($ch1, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch1, CURLOPT_HEADER, 0);
curl_setopt($ch2, CURLOPT_URL, "http://www.php.net/");
curl_setopt($ch2, CURLOPT_HEADER, 0);
/* Crea los multiples manejadores de cURL */
$mh = curl_multi_init();
/* Agrega los dos manejadores */
curl_multi_add_handle($mh,$ch1);
curl_multi_add_handle($mh,$ch2);
$running=null;
/* Ejecuta el manejador */
do {
curl_multi_exec($mh,$running);
} while ($running > 0);
/* Cierra el manejador */
curl_multi_remove_handle($ch1);
curl_multi_remove_handle($ch2);
curl_multi_close($mh);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 80.33.133.3
----
Manual Page -- http://www.php.net/manual/en/function.curl-multi-init.php
Edit -- https://master.php.net/note/edit/76210
Del: integrated -- https://master.php.net/note/delete/76210/integrated
Del: useless -- https://master.php.net/note/delete/76210/useless
Del: bad code -- https://master.php.net/note/delete/76210/bad+code
Del: spam -- https://master.php.net/note/delete/76210/spam
Del: non-english -- https://master.php.net/note/delete/76210/non-english
Del: in docs -- https://master.php.net/note/delete/76210/in+docs
Del: other reasons-- https://master.php.net/note/delete/76210
Reject -- https://master.php.net/note/reject/76210
Search -- https://master.php.net/manage/user-notes.php