Thanks for the handy script, Ken.
I've also discovered that this comes in handy for those of us who are along the coast where off-shore warnings and advisories are just as important as they land-based advisories. In our area of the southeast coast, the off-shore warnings and advisories are included with the regular, land-based zone advisories (Small Craft Advisory, Gale Warning, etc.). Some areas may or may not be including these together with the land-based advisories.
Your warning script also works for marine advisories with a slight modification.
First, you'll need to get your marine zone from the NWS. Marine zones are not normally listed with the land-based zones, so you'll need to do some investigative work. I found mine several weeks ago when marine warnings were being posted for Hurricane NOEL.
If you live in a coastal area, you'll need to monitor the raw RSS feed for your land-based zone. Look for any marine advisories or warnings that might be contained in the RSS feed and make note of the marine zone. For example, mine is AMZ252
In the original warning script, simply replace the land-based zone with the marine zone you just found. Rename the script to something different than the original - say rss-maring-warning.php - and upload to your server. Include the newly-named file in the page you want the marine warnings to appear and you're good to go.
You'll also need to change the zone parameter in the rss-advisory-test-c.php XML Parser script if you're using that script in conjunction with the warning script.
There is one little gotcha: If you modify this script for marine advisories and warnings and use the original land-based script on the same page, you will get a php error. To use both on the same page you will need to make one more change to the marine version before uploading.
There are two instances where forecastfetchURLWithoutHanging is stated in the original script. You will find them on lines 118 and 224. Append this function in the marine version of your script to "forecastfetchURLWithoutHanging2" (without the quotes, of course) in both places. You can now call both scripts on the same page without getting an error.
This all depends of course whether or not your local NWS includes marine warnings and advisories in the RSS feed. Not all do, but the NWS states that they are eventually going to include them in all their RSS feeds for advisories and warnings. If yours isn't available yet, just be patient.