Recent Posts

Pages: [1] 2 3 ... 10
1
Weather Website PHP/AJAX scripting / Re: cloudbase
« Last post by Vasco on Today at 02:54:33 PM »
Something wrong in character coding. . . what is 36d'z''C?

2
Thanks again Ken It has been like that for about five years with no problems. I had a hard time finding the zone numbers, but I did find them and everything is working again.
3
Weather Website PHP/AJAX scripting / Re: Advisories Page Missing Legend
« Last post by Forever on Today at 02:17:33 PM »
I have a cell phone page for just the MTR zone and had it pulling just the advisories for that zone but it's no longer working. If I use this new code it pulls in the advisories for all of the zones from the bigger map.
https://www.weathercat.net/cell-advisories.php

This is the code I had before, is there any way to get this working again?
Code: [Select]
/* Get the Current legend */
$fileName = "https://www.weather.gov/mtr/";
$the_source = get_data($fileName);
$startgrab = strpos($the_source, "<div id=\"wfomap_rtcol_bot\">");
$finish = strpos($the_source, "</div>\n\t\t\t</div>",$startgrab);
$length = $finish-$startgrab;
$the_legend = substr($the_source, $startgrab, $length);
$the_legend .= '</div>'; // Add back the terminal string we searched for in $finish
/* End Legend Acquisition */
4
Hi,

Thank Ken for that, i'll do as you suggest, this website has been working 90% of the time for the last 11 years, yet this morning didn't want to load, kinda strange.  Will let you know later how I progress.

Thanks again..

Nick. dw7240.com
5
Looking at the wayback machine, I see that http://dw7240.com/Base-Canada/index.php is the URL to your website.

Using check-fetch-times.php?show=settings shows you have a mashup of USA, Canada and World settings and that may be causing the issues you see with your site.  I'd suggest getting a Settings.php from the Base-Canada.zip distribution, copying your current values to the corresponding ones in the Base-Canada Settings.php to clean out your current version.

Because you're trying to load USA alerts and Meteoalarm.org alerts for the UK, the site likely has issues.
6
Check the error_log for the website .. it can contain clues about what is failing.

Are you using a template or your own website design?  There doesn't appear to be a Saratoga template (the check-fetch-times.php diagnostic utility is 404-Not Found).

Need a lot more details in order to provide any more guidance.
7
Hi,

Just received this via Godaddy chat Tech.....As I can see that your website is not working due to exceeding the server's Physical memory, I also understand that you haven't made any changes in last week but some of your code is just using the server's physical memory.

Do you have a developer who can look up your codes?

Not sure whats going on, have not altered website for ages, latest from tech......Great, please ask your developer review your code and optimize it then your website will start working again.

However, you can also upgrade your hosting plan with more physical memory then it could fix it as well.

Funny how more money can get rid of memory.....and chance somebody could have a look into this,

https://dw7240.com

Thank you in advance.

I have noticed that website has been moved to a folder called Sandbox within the public html folder, not sure what has made that change, seems Godaddy are trying to blame my developer whoever that is, your the man Ken....Any ideas ?

This is crazy, website moved back by Godaddy and its working, what the heck !!!!!
9
Weather Website PHP/AJAX scripting / Re: wxforecast.php Updated Date Issue
« Last post by Otis on Today at 12:37:05 PM »
As Jasiu indicated, his change works, there are two (2) locations for that change in the advforecast2.php file: Point Forecast and then Zone forecast.  I made both changes and the time stamp is updated on the forecast.

10
I think the problem is caused by misspecification of the Forecast zones in Settings.php
Quote
$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
 "KLAS|Las Vegas, NV|https://forecast.weather.gov/MapClick.php?lat=36.17&lon=-115.13&unit=0&lg=english&FcstType=text&TextType=2",
"KVGT|North Las Vegas, NV|https://forecast.weather.gov/MapClick.php?lat=36.2121&lon=-115.194&unit=0&lg=english&FcstType=text&TextType=2",
"IEINV|Reno,NV|https://forecast.weather.gov/MapClick.php?lat=39.5296&lon=-119.8138&unit=0&lg=english&FcstType=textt&TextType=2",
"KIFP|Laughlin, NV|https://https://forecast.weather.gov/MapClick.php?lat=35.1678&lon=-114.573&unit=0&lg=english&FcstType=text&TextType=2",
"KORD|Bensenville, IL|https://forecast.weather.gov/MapClick.php?lat=41.960&lon=-87.9411&unit=0&lg=english&FcstType=text&TextType=2",
"KFEP|Shannon, IL|https://forecast.weather.gov/MapClick.php?lat=42.1547&lon=-89.7398&unit=0&lg=english&FcstType=text&TextType=2",
"KDKB|Hampshire, IL|https://forecast.weather.gov/MapClick.php?lat=42.1546&lon=-89.74&unit=0&lg=english&FcstType=text&TextType=2",
);
The first entry in each line appears to be a METAR site, not a NVZnnn Forecast Zone.
The first line should read
Quote
"NVZ020|Las Vegas, NV|https://forecast.weather.gov/MapClick.php?lat=36.17&lon=-115.13&unit=0&lg=english&FcstType=text&TextType=2",
for example.
Pages: [1] 2 3 ... 10