Page 1 of 1

how to seach the whole website?

Posted: Tue Mar 15, 2011 1:25 pm
by vin_akleh
this is a code that gets the link of the video from a website of one page

Code: Select all

<?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???

Re: how to seach the whole website?

Posted: Tue Mar 15, 2011 3:26 pm
by jankidudel
Maybe you need to loop through the folder(s) where the whole website resides ?

Re: how to seach the whole website?

Posted: Fri Mar 18, 2011 6:10 am
by vin_akleh
can you give some pointers??