Hello i am building web app and i need to send post request using CURL to multiple pages at once, here is my basic example:
$ch = curl_init('http://mysite1 .com/page1.php');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "id=$myid");
$hasil = curl_exec ($ch);
curl_close ($ch);
what i am trying to do is to send the same request to many pages at the same time for example: to mysite1 .com/page1.php,mysite2 .com/page1.php,mysite3 .com/page1.php etc anyone to help how to use curl multi exec to do this