vin_akleh Posted March 18, 2011 Share Posted March 18, 2011 this is a code that gets the link of the video from a website of one page <?php $html = file_get_contents('http://test.com/movie.php?id=7333'); if (preg_match('/<param name="movie".*/', $html, $matches)) { echo "1- Match was found <br />"; echo $matches[0]; } ?> i would like to make it search such contents from the whole website test.com not just test.com/movie.php?id=7333 any idea how to do that??? Link to comment https://forums.phpfreaks.com/topic/230998-how-to-seach-the-whole-website/ Share on other sites More sharing options...
btherl Posted March 25, 2011 Share Posted March 25, 2011 I would try one of these approaches: 1. Use (or create) a spider to follow the links on the site 2. Predict the pattern of the urls and go through each one in turn (eg try id=1, id=2, id=3, etc etc). Link to comment https://forums.phpfreaks.com/topic/230998-how-to-seach-the-whole-website/#findComment-1192004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.