title: php curl stop to get me result
body: <p>some know why curl stop to give me result after 12 pages ?</p>
  
  <p>im using simple html dom , looking for answer everywhere</p>
  
  <pre><code>&lt;pre&gt;&lt;code&gt;
  
  include 'simple_html_dom.php';
  for ($i=1;$i&lt;20;$i++)
  {
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "http://www.aliexpress.com/wholesale?site=glo&amp;g=y&amp;SearchText=baby+romper&amp;page=$i&amp;initiative_id=SB_20151130033753&amp;shipCountry=IL&amp;needQuery=n");
  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0");
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 100000);
  curl_setopt($ch, CURLOPT_REFERER, "http://www.test.com");
  $html = str_get_html(curl_exec($ch));
  
  
  foreach($html-&gt;find('a[class=product]') as $a)
  {
  
      echo  $a-&gt;attr['href']."&lt;br/&gt;";
  
  }
  echo "&lt;h1&gt;$i&lt;/h1&gt;";
  }
  curl_close($ch);
  &lt;/code&gt;&lt;/pre&gt;
  </code></pre>