Web Weather > Weather Website PHP/AJAX scripting

Curly's Wx Story script

(1/39) > >>

tmabell:
Within the past few weeks Curly's WxStory script is not working for at least one local office.  For site KIWX Northern Indiana the text is being retreived but the image is not. It still seems to work for the other sites I checked. 

http://ww2.mymishawakaweather.com/wxstory_inc.php

The cache file:


--- Code: ---<?php

$mainStory = array (
  'Tab2FileL.png?150944' => 
  array (
    0 => 'One More Cold Day',
    1 => 'The cloudy and cold weather will linger for 1 more day with a few showers near Lake Michigan. Warmer temperatures will arrive starting Wednesday, with above normal temperatures by Thursday and Friday. The warmer temperatures will bring increasing chances for showers, especially Thursday and Thursday night.',
    2 => 'http://www.weather.gov/images/iwx/wxstory/Tab2FileL.png?1509444443',
    3 => 'https://www.weather.gov/iwx/weatherstory',
    4 => './wscache/wsimg_iwx_Tab2FileL.png?150944.443',
    5 => '443',
    6 => 'Tab2FileL.png?150944',
    7 => 'iwx',
    8 => 'Northern Indiana',
  ),
);

$altStory = array (
  'Tab3FileL.png?150944' => 
  array (
    0 => 'Halloween Forecast',
    1 => 'Trick or Treat Forecast: Bundle up as you go out later this afternoon and early evening as temperatures will start in the upper 30s to lower 40s at the start of trick or treating and end up in the middle 30s by the end. Wind should be on the lighter side, but will still make it feel like its 30 to 35 degrees.',
    2 => 'http://www.weather.gov/images/iwx/wxstory/Tab3FileL.png?1509444443',
    3 => 'https://www.weather.gov/iwx/weatherstory',
    4 => './wscache/wsimg_iwx_Tab3FileL.png?150944.443',
    5 => '443',
    6 => 'Tab3FileL.png?150944',
    7 => 'iwx',
    8 => 'Northern Indiana',
  ),
);

$nfo = 'Northern Indiana';

$hdlnr = array (
  0 => '     <td style="text-align: center; background-color:#F0F7FF; padding: 6px 0px 6px;"><a href="/wxstory_inc.php?i=iwx&amp;ifn=Tab2FileL.png?150944" title="One More Cold Day" style="text-decoration: none; color: #0071BC; font-size: 1.3em;">One More Cold Day</a></td>',
  1 => '     <td style="text-align: center; background-color:#F0F7FF; padding: 6px 0px 6px;"><a href="/wxstory_inc.php?i=iwx&amp;ifn=Tab3FileL.png?150944" title="Halloween Forecast" style="text-decoration: none; color: #0071BC; font-size: 1.3em;">Halloween Forecast</a></td>',
);


?>
--- End code ---

Debugging indicates that the image file is not found (404) yet manually entering the link into a browser displays the image just fine.  I am out of ideas!

UpstateWeather.com:
Wish I can help, but honestly, this is the first time I've seen this script. And I LOVE it! Can anyone provide the raw files? I can't seem to find a valid download link any more.

tmabell:
Eric799... PM sent!

tmabell:
For others wishing to have this script it is attached (with Curly's permission).

UpstateWeather.com:
Thanks tmabell!

Navigation

[0] Message Index

[#] Next page

Go to full version