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??? Quote Link to comment 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). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.