Author Topic: PHP for USA quakes from USGS updated  (Read 4116 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
PHP for USA quakes from USGS updated
« on: January 18, 2007, 02:40:55 PM »
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: [Select]
preg_match('|<FONT COLOR="#CC0000">(.*)<BR>|Usi',$html,$updated); and now is changed to
Code: [Select]
preg_match('|<FONT COLOR="#CC0000">(.*)<BR/>|Usi',$html,$updated);

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,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything