If there was a list of 10 sites, or more, using cURL to connect to and puta content of each site, what would be the most effective way, which would give less time between one connection and another. That is, what good practice for this case, something like:
Starting cURL - > set options- > close, and start again for the next site, ..
Note: the options, as they are the same for all the sites that I'm going to connect, can create an array and use curl_setopt_array
, not to get a giant code.
Opening and closing the connection for each site, assuming that the cURL options would be the same, the only difference would be curlopt_url
..?