|
SylvaniaWeather
|
 |
« on: August 16, 2009, 06:44:59 PM » |
|
Hoping someone can help me. I just switched over to GoDaddy for my hosting. My Saratoga rss-advisory & forcast scripts are no longer working right. GoDaddy tells me that I cannot pull from a URL for security reasons. I there anyway around this. My site is at http://www.sylvaniaweather.com
|
|
|
|
|
Logged
|
|
|
|
|
sam2004gp
|
 |
« Reply #1 on: August 16, 2009, 06:50:29 PM » |
|
Ken, posted below me, he has the better answer. Here is/was my answer when I had no php script functionality at all, because of a directory permission problem.:I had a similar problem. Is your server on godaddy Linux or Windows based? I bet it's windows have them switch you to a Linux server. The switchover should be free, and fix your issue. Basically it involves the permissions need for those scripts to run properly.
|
|
|
|
« Last Edit: August 16, 2009, 07:00:43 PM by sam2004gp »
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #2 on: August 16, 2009, 06:56:01 PM » |
|
Sure, On your index.php page, replace the <?php include('http://www.sylvaniaweather.com/rss-advisory.php?&inc=Y&summary=Y;detailpage=advdetail.php'); ?> with <?php $_REQUEST['inc'] = 'Y'; $_REQUEST['summary'] = 'Y'; $_REQUEST['detailpage'] = 'advdetail.php'; include("rss-advisory.php"); ?> and that should fix the index page. For the advdetail.php page, just replace <?php include('http://www.sylvaniaweather.com/rss-advisory.php?&inc=Y'); ?> with <?php $_REQUEST['inc'] = 'Y'; include("rss-advisory.php"); ?> Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
|
SylvaniaWeather
|
 |
« Reply #3 on: August 16, 2009, 08:14:11 PM » |
|
thanks so much! I'll give it a try tomorrow and let you know how it all works out.
|
|
|
|
|
Logged
|
|
|
|
|
SylvaniaWeather
|
 |
« Reply #4 on: August 16, 2009, 08:16:03 PM » |
|
also, if forgot to mention that the icons for my forecast are no longer showing up. Any thoughts?
|
|
|
|
|
Logged
|
|
|
|
|
SylvaniaWeather
|
 |
« Reply #5 on: August 16, 2009, 09:46:34 PM » |
|
Got everything working including the icons.  I just had those uploaded to the wrong folder.  Thanks for all your help. Thanks Ken for all the hard work you put into these scripts!
|
|
|
|
|
Logged
|
|
|
|
|
SylvaniaWeather
|
 |
« Reply #6 on: August 17, 2009, 04:05:22 PM » |
|
well, I have a sever t-storm right now and nothing is showing up on my web page, any ideas?
|
|
|
|
|
Logged
|
|
|
|
|
TorH
|
 |
« Reply #7 on: August 17, 2009, 05:30:54 PM » |
|
Well i don't know if you mean your site isn't showing? I can get it up here, and the forecast are there too, with the icons 
|
|
|
|
|
Logged
|
Davis Vantage PRO2 wireless VWS V14.00 p103, WD ver.10.37N, WL 5.8.2, VVP. WeatherFlash DW1549 WeatherUnderground: INORDLAN14 Location: Fauske, Northern Norway. N 67°15'41", E 15°24'41" http://bjornli.net 
|
|
|
|
SylvaniaWeather
|
 |
« Reply #8 on: August 17, 2009, 07:06:49 PM » |
|
Sorry, that's what happens when to type up a message to fast. It tends to be a little on the vauge side. It's my advisory script that is not working. I made the changes to it that Ken suggested and that got rid of the error codes. However, when a severe t-storm warning came in this afternoon nothing showed up in the green bar at the top of the website.
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #9 on: August 17, 2009, 09:29:44 PM » |
|
The issue is that your cache file for the return of data from weather.gov is not writable <!-- GET /alerts/wwarssget.php?zone=OHZ003 HTTP/1.0 Host: www.weather.gov --> <!-- Time to fetch: 0.309 sec --> <!-- unable to write rss-advisory-OHZ003.txt --> You need to create a 'rss-advisory-OHZ003.txt' file using notepad, upload it to your website, then use your website control panel to set its permissions to 666 so it is writable by the script. Then it should work fine. You'll also need a 'forecast.txt' file to cache the results from weather.gov for your point printable forecast -- advforecast2.php shows <!-- unable to write cache file forecast.txt --> With these two cache files enabled, your home page will load more quickly too  Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
|
SylvaniaWeather
|
 |
« Reply #10 on: August 18, 2009, 07:26:09 PM » |
|
Looks like everything is working now. I did end up having to switch from a windows account to a linux account. The windows hosting did not allow permission changes.
Thanks again for everyones help! Lynnette
|
|
|
|
|
Logged
|
|
|
|
|
saratogaWX
|
 |
« Reply #11 on: August 18, 2009, 09:46:56 PM » |
|
Good move, Lynnette!
PHP scripts and websites just seem to work better on Linux/Apache websites, and unless you're writing ASP pages or .NET applications, you're better off with Linux/Apache (IMHO).
Best regards, Ken
|
|
|
|
|
Logged
|
Ken True/Saratoga, CA, USA main site: saratoga-weather.orgDavis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
|
|
|
|
sam2004gp
|
 |
« Reply #12 on: August 19, 2009, 10:09:04 AM » |
|
Looks like everything is working now. I did end up having to switch from a windows account to a linux account. The windows hosting did not allow permission changes.
Thanks again for everyones help! Lynnette
Hmm, my response was helpful after all. Great.
|
|
|
|
|
Logged
|
|
|
|
|
mackbig
|
 |
« Reply #13 on: August 19, 2009, 10:23:15 AM » |
|
I think people get misdirected (confused) when signing up for hosting... probably because its their first foray into hosting a site post a free site somewhere.
After you click on Hosting plans... it says "choose your operating system" People think "I am running XP, so I must need a Windows hosting plan"
Andrew
|
|
|
|
|
Logged
|
 Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display. Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
|
|
|
|
sam2004gp
|
 |
« Reply #14 on: August 19, 2009, 10:26:20 AM » |
|
That is sort of exactly what I thought, when I signed up with Godaddy as well. At least when I switched over to Linux it was a free change.
|
|
|
|
« Last Edit: August 19, 2009, 10:30:25 AM by sam2004gp »
|
Logged
|
|
|
|
|