EDIT... to include the proper attachment.
I'm using an old version of the wxNWSpns.php script that quit working today along with the rest. This one has the drop-down menu to chose which office you wish to view.
The script is attached. Can it be patched?
That does seem to be an old script.. the code that accesses the NWS seems to be
$html = implode('', file($noaasr));
$html2 = implode('', file($noaasr));
although, it is a bit strange to get the same data twice.
Nevertheless, the file() function in PHP will see the 'http://' and attempt to connect and read the contents of the URL into an array, which the implode() converts to a string.
It may be as simple as adding a stream_context to the request so that the Akamai gods would be satisfied this is a proper request.
Try changing the code to
$opts = array(
'http'=>array(
'method'=>"GET",
'protocol_version' => 1.1,
'header'=>"Cache-Control: no-cache, must-revalidate\r\n" .
"Cache-control: max-age=0\r\n" .
"Connection: close\r\n" .
"User-agent: Forecast loader\r\n" .
"Accept: text/plain,text/html\r\n"
)
);
$context = stream_context_create($opts);
$html = implode('', file($noaasr,0,$context));
// $html2 = implode('', file($noaasr));
$html2 = $html;
and that should work (it did on my local system)
Best regards,
Ken