HERE is my CURL CODE :
function get_curl_data($urlToHit) {
$ch = curl_init($urlToHit);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
$result = curl_exec($ch);
curl_close($ch);
}
I call the above function twice in same php page with 2 different URL on different HOST. When I do so, I get Service Unavailable -- With internal server error -- The error log has segmentation fault error.
But When I just make 1 Curl Call using any of the 2 URL , the code works fine.
Why isn't it allowing me to make 2 curl calls in same page ?
Any Help ?