Fire danger script

Do you know when it stopped working? I recall some scripts stopping because the .gov required a USER_AGENT - but that was a while ago. Second the CURL suggestion.

Update: Tested on my server, same result as yours.

I did include the user agent in the curl,

I don’t know when it stopped, just noticed it today.

So the version I posted doesn’t work either?

I’ll try that now… Standby

Doesn’t work.

I just found this link… http://www.wrh.noaa.gov/firewx/?latitude=&longitude=&wfo=sew&interface=fwzones&click.x=4&click.y=181

I wonder If this could be used?

Update: Doesn’t work.

Jachym’s appears to work for me, https://realweatherstation.com/vim/fire_weather.php but I don’t know what it’s supposed to do :dontknow:

Strange… But I noticed your page Is secured. I wonder if that has anything to do with it.

AFAIK that only affects incoming requests, so I don’t think the other server would know that :?

hmmm… So I wonder why its working for you but not for me. You think its a server thing blocking it?

The nws has been known to block IP’s…

Both me and my parents site are on 1and1. I wonder if anyone else on 1and1 is blocked.

Or your server doesnt have the cURL extension installed.

We could check this.
Just create a blank document.

Inside it put:


<?php
   echo phpinfo();
?>


Save it as something.php and upload it anywhere to your server. And then post here a link to this file. It will show the exact PHP configuration and installed extensions. The script I sent you above works for me fine as well.

cURL is enabled

http://www.northbendweather.com/php.php

Any ideas?

I would contact them and ask if they are blocking your server IP.

Ive had issues with 1and1 in the past blocking my IP, but normally when that happens I cant access my site. You think there blocking my site from accessing the files I need for this script? Maybe for security reasons?

Well, I think it would be a good idea to ask 1and1 to check it out but I was really thinking of the weather.gov folks.

Ok… Ill send weather.gov an email too see what they say. I will email 1and1 also incase they have blocked the weather.gov domain for some reason.