I've recently finished my first PHP script and noticed a bug with file_get_contents.
I'm using that function to check if there's a certain word on 2 or 3 pages. I tried several things but I can only get it to look on 1 single page. Here's a bit of code:
$html = file_get_contents("http://nw4.novaworld.net/bhd_3_list.lob?page=1");
$regEx = '/a\.s\.u/';
if(preg_match($regEx, $html, $matches))
What i want is to use the file_get_contents, to look on 3 or 4 different pages. The link in that function, on the end has page=1. I tried taking it off and replacing the 1 with [1-3], but this resulted in an error.
Does this mean I have to write the $html = file_get_contents four times or is there a different way ?
Thanks,
VipleX