title: Connection timed out after 10000 milliseconds in CURL and PHP Geocoder
body: <p>I have a script with a loop in which I execute the PHP geocoder function.
  The loop has more than 1000 iterations and the whole process takes some time.
  This is my script:</p>
  
  <pre><code>for ($x = 0; $x &lt; 1000; $x++) { 
  
  ////////////////////////////////////////////////////
  // GECODE THE ADRESS AND GET THE COORDS
  $curl     = new \Ivory\HttpAdapter\CurlHttpAdapter();
  
  $geocoder = new \Geocoder\Provider\BingMaps($curl,$bingApikey);
  //$geocoder = new \Geocoder\Provider\MapQuest($curl,$mapQuestApikey);
  //$geocoder = new \Geocoder\Provider\ArcGISOnline($curl);
  //$geocoder = new \Geocoder\Provider\OpenStreetMap($curl);
  
  
  $result =  $geocoder-&gt;geocode($matchesAdressRightValues[$x][0]);
  
  if (count($result)==0 || count($result)&gt;1 ){
      $bingSucUn = 'not_success'; 
      array_push($arraySucUnsucBing,$bingSucUn);
  }   
  else {
      //echo ('result');
      //echo (count($result));
      //echo ('Endresult');
      $bingSucUn = 'success'; 
      array_push($arraySucUnsucBing,$bingSucUn);
  }
  //var_dump($result);
  ////////////////////////////////////////////////////
  }  // end for
  </code></pre>
  
  <p>The problem is I get an error: </p>
  
  <pre><code>(&amp;quot;Connection timed out after 10000 milliseconds&amp;quot;).
  </code></pre>
  
  <p>How can I increase the limit?
  I have added this on top of my screen but its only for PHP not for the curl request:</p>
  
  <pre><code>set_time_limit(0); 
  </code></pre>
  
  <p>Normally if I was using pure CURL and not integrated in the PHP Geocoder then I would do something like that:</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch,CURLOPT_TIMEOUT,1000);
  </code></pre>
  
  <p>But what should I do now?</p>