Sorry for stupid question... can i use same curl_init()
for different resource ?
If not why?
$name= array("mysite1","mysite2","mysite3");
$figli= 3;
$ch = curl_init();
for($i=0; $i < $figli; $i++){
$url= 'http://www.'.$name[$i].'.com';
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
};
curl_close($ch);
Thanks a lot and sorry for my english :)