WXforum.net
May 21, 2013, 12:40:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6616  •  Posts: 178479  •  Topics: 18113
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: GoDaddy will not allow url file access  (Read 2906 times)
0 Members and 1 Guest are viewing this topic.
SylvaniaWeather
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« 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
Mount Crawford, Virginia
Forecaster
*****
Offline Offline

Posts: 2782


Weeeeeeeee!!!!


WWW
« Reply #1 on: August 16, 2009, 06:50:29 PM »

Ken, posted below me, he has the better answer. Smile

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

SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09

saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #2 on: August 16, 2009, 06:56:01 PM »

Sure,

On your index.php page, replace the
Code:
<?php include('http://www.sylvaniaweather.com/rss-advisory.php?&inc=Y&summary=Y;detailpage=advdetail.php'); ?>
with
Code:
<?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
Code:
<?php include('http://www.sylvaniaweather.com/rss-advisory.php?&inc=Y'); ?>
with
Code:
<?php
 $_REQUEST
['inc'] = 'Y';
include(
"rss-advisory.php");
?>

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis 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
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« 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
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« 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
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« Reply #5 on: August 16, 2009, 09:46:34 PM »

Got everything working including the icons.   Dancing I just had those uploaded to the wrong folder.  d'oh! Thanks for all your help.  Thanks Ken for all the hard work you put into these scripts!
Logged

SylvaniaWeather
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« 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
Forecaster
*****
Offline Offline

Posts: 405



WWW
« 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  Wink
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
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« 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
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« 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
Quote
<!-- 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
Quote
<!-- unable to write cache file forecast.txt -->

With these two cache files enabled, your home page will load more quickly too Smile

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis 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
Senior Contributor
****
Offline Offline

Posts: 184



WWW
« 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
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« 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.org
Davis 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
Mount Crawford, Virginia
Forecaster
*****
Offline Offline

Posts: 2782


Weeeeeeeee!!!!


WWW
« 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.  Dancing
Logged

SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09

mackbig
Forecaster
*****
Online Online

Posts: 4072



WWW
« 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
Mount Crawford, Virginia
Forecaster
*****
Offline Offline

Posts: 2782


Weeeeeeeee!!!!


WWW
« 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

SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.73 seconds with 19 queries.
anything