title: How to get all page pagination data using curl in php
body: <p>I have implemented one data scraping script which fetch data using CURL.</p>
  
  <p>But that fetch record only one page but i want all data because on that page pagination is there.</p>
  
  <p>We are getting data using </p>
  
  <pre><code>$xpath = new DOMXPath($dom);
  $xpath_resultset =  $xpath-&gt;query("//div[@class='parentListing']");
  </code></pre>
  
  <p>in above code parentListing is div class and i am fetching record between div and grep the data using different different class.</p>
  
  <p>Can any one have idea how to get pagination data of all page.</p>
  
  <p>If any one have any suggestion then please help me.</p>
  
  <p>Thanks...</p>