Web Weather > Weather Web Resources

PHP for USA quakes from USGS updated


The quake-USA-test.php script has a one-line change to fix the date problem (the USGS site changed a bit leading to a change in a regex for the script).

Line 153 was
--- Code: --- preg_match('|<FONT COLOR="#CC0000">(.*)<BR>|Usi',$html,$updated);
--- End code ---
and now is changed to
--- Code: --- preg_match('|<FONT COLOR="#CC0000">(.*)<BR/>|Usi',$html,$updated);
--- End code ---

You can change your copy of the script, or download (and customize) the updated copy at http://saratoga-weather.org/scripts-quake.php

Thanks to anchorageweather for spotting the issue!

Best regards,


[0] Message Index

Go to full version