Why would this preg_match_all suddenly stop working?

This code was working for days until it stopped working at the worst possible time. It simply pulls weather alert information from a NOAA website and displays it on my page. Can someone please tell me why this would suddenly fail?

$file = file_get_contents("http://forecast.weather.gov/showsigwx.php?warnzone=ARZ018&warncounty=ARC055");  
 preg_match_all('#<div id="content">([^`]*?)<\/div>#', $file, $matches); 
 $content = $matches[1];  


 echo "content = ".$content."</br>" ;
 echo "matches = ".$matches."</br>" ;
 print_r ($matches); echo "</br>";
 echo "file </br>".$file."</br></br>" ;

Now all I get is an empty array.

This is the output..

content = Array

matches = Array

Array ( [0] => Array ( ) [1] => Array ( ) )

file = the full page as requested by file_get_contents

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories