How to get all url from website using php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3820666/grabbing-the-href-attribute-of-an-a-element">Grabbing the href attribute of an A element</a>  </p>
</blockquote>



<p>I want to find all URL from a website (HTTP ://example.com)  for creating site map.Currently i was using curl and pregmatch().It will take more time for processing retrieving url from page.Can i find all URL from website .any other method to find URL .Please help me anyone  for creating site map from   URL.</p>
