how to seach the whole website?

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

how to seach the whole website?

Post 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???
jankidudel
Forum Commoner
Posts: 91
Joined: Sat Oct 16, 2010 4:30 pm
Location: Lithuania, Vilnius

Re: how to seach the whole website?

Post by jankidudel »

Maybe you need to loop through the folder(s) where the whole website resides ?
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

Re: how to seach the whole website?

Post by vin_akleh »

can you give some pointers??
Post Reply