title: I can't do pagination with while true, not working properly
body: <p>I'm trying to go next page and for that wrote <code>while(true)</code> loop, but not working properly. Giving me no error or anything just nothing.  </p>
  
  <p>This is the web site link: <a href="https://suumo.jp/ms/shinchiku/osaka/sa_osaka/pnz11.html" rel="nofollow noreferrer">https://suumo.jp/ms/shinchiku/osaka/sa_osaka/pnz11.html</a> I'm trying to add +1 to pagination</p>
  
  <pre><code>$startID = 1;
  
  while(true) {
  
          @$url = "https://suumo.jp/ms/shinchiku/osaka/sa_osaka/pnz1".$startID.".html";
          $html = @file_get_contents($url);
          if($http_response_header[0] == 'HTTP/1.1 200 OK') {
              libxml_use_internal_errors(true);
              $parser = new \DOMDocument();
              $parser-&gt;loadHTML($html);
  </code></pre>
  
  <p>And end of the code. </p>
  
  <pre><code>$a = $startID+1;
  
          } else {
              $this-&gt;error("Next page is not found!");
          }
  </code></pre>
  
  <p>By the way I am scraping first page with no problem. But it isn't go next page. Any idea for why is that happening? </p>