Here's my code snippet:
Code: Select all
$futureURL = "http://www1.leg.wa.gov/legislature/showagenda.aspx?chamber=house&start=2008-01-30";
$html = file_get_contents("$futureURL");
if (!$html) {
die("Error retrieving URL");
}
preg_match_all('#([^>]+)</h1>(.+?)(<h1|</html>)#is', $html, $outer_matches, PREG_SET_ORDER);
Any idea what might be causing this to fail? Those two pages look the same to me. Any thoughts would be most helpful. Thanks.