cloudy cloudy

Author Topic: advforecast.php script (Tom's)?  (Read 14826 times)

0 Members and 1 Guest are viewing this topic.

Offline 2-Wheeler

  • Posts: 196
  • 48 13 07.05 N, 122 41 11.84 W, Elevation: 95 ft
    • CoupevilleWeather
Re: advforecast.php script (Tom's)?
« Reply #30 on: July 22, 2006, 11:10:04 PM »
I'm 100% sure it matters!  :wink:

Okay, help me here. Can you tell me where it matters?  Is there a file pointer somewhere in the PHP script. I couldn't see one, maybe I'm missing something. I am sure that if I put either of those URLs in my browser they point to the EXACT same files.

The crazy thing is, everything was working for several months, and nothing that I can identify was changed, and suddenly it stopped working. I noticed the NOAA Printable forecast starting using new file locations for the images, so I even tried to restructure my paths and folders to match, and it started working for about 30 minutes, then stopped again.  Compare the path for the image files on your printable forecast and mine. Maybe they changed something else?

-David Broberg   CWOP#: CW5670 / CoCoRaHS #CO-BO-218

mth

  • Guest
Re: advforecast.php script (Tom's)?
« Reply #31 on: August 12, 2006, 03:17:38 PM »
Good Morning,

It seems that my PHP Forecast just stopped working.  I'm not sure what the heck happened here.  When I go to the forecast page of my site, the PHP makes the forecast.txt file blank.  I have a backup of my forecast.txt file, when I replace the file with the backup, as soon as I call up the forecast.php, it writes to the forecast.txt file and makes it blank.  Any comments or suggestions??


http://69.143.144.53/forecast.php

http://69.143.144.53/forecast.txt

Thanks,
Michael

Offline saratogaWX

  • Global Moderator
  • Posts: 5,945
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
    • Saratoga Weather
Re: advforecast.php script (Tom's)?
« Reply #32 on: August 12, 2006, 03:27:35 PM »
There have been some recent changes to several of the www.*.noaa.gov websites, and Tom has updated the advforecast.php script to address the changes.

You should try a fresh copy of the script from
http://www.carterlake.org/advforecast.php.txt

That will probably fix your problem.

When you install, you should generate a fresh copy of the $fileName URL by following the instructions in the code.  Some of the changes to the NOAA website(s) have changed the location of the point printable forecast.  Tom has also added a clickable hotlink in the page to refresh the cache if the user finds it blank.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

mth

  • Guest
Re: advforecast.php script (Tom's)?
« Reply #33 on: August 12, 2006, 04:01:25 PM »
Hi Ken,

Thanks for the quick response:

I've installed and configured the new updated advforecast script although it seems to be giving me some problems. 

http://69.143.144.53/advforecast_php.php
http://69.143.144.53/forecast.txt

Can you please take a look and let me know if its something that I did wrong?

Cheers,
Mike

mth

  • Guest
Re: advforecast.php script (Tom's)?
« Reply #34 on: August 12, 2006, 04:32:29 PM »
Ken,

I think I got it working again :), thanks for your help.

Mike