RE: remove dew point / defaults.php
Brought to you by:
iridium
From: Max H. <ma...@fl...> - 2005-03-03 00:32:26
|
The first thing you need to do is determine whether your defaults.php is being loaded. A simple way to do this might be to insert a line echo "This is in defaults.php"; into it - it'll break phpweather and throw lots of error messages, but if you see that, then the file is being read. If not, then we need to work out why. The most likely reason would be that the webserver does not have access to read the defaults.php file. What kind of webserver are you using? Cheers, Max _____ From: php...@li... [mailto:php...@li...] On Behalf Of lee Sent: 02 March 2005 14:16 To: php...@li... Subject: Re: remove dew point / defaults.php hello Greg, Thanks but I think you've misunderstood my problem; The weather data seems to be largely fine, but I am having trouble getting defaults.php to be recognised by the weather program, not just regarding my chosen excludes. I'm using php4 on freebsd. Other people have reported similar troubles on the site at sourceforge. Interestingly, having said the above, my defaults.php does seem to be acknowledged certainly in part, because my chosen php error reporting level setting is being acknowledged. Does anyone know/have a method to help me out? thanks again, lee gr...@ga... wrote: Hi Lee, Just read your post and kind of chuckled. Spent some time on similar problems. Do have the answer though. Ready? It's not a PHP problem or the program itself. What we have here is a name resolution issue. You're probably on a high-speed internet connection. To fix your problem do this. Open up the file data_retrieval.php. Go down to the line that defines where the data is being pulled from. Think it's http://weather.noaa.gov - replace weather.noaa.gov with 205.156.51.200. This solves the timing issue with dns and the api. This will also increase the time it takes to get your metar. Have fun with the program. Good luck, Greg Visit my weather module @ http://www.gabbinfutures.com thanks Max, but sadly no change. Presumably all we have to do is reupload defaults.php and refresh the browser cache? Or do we have to go into config builder or something to get the new file recognised? lee (not a php programmer, hence my other request for help about the offset bug) Max Hammond wrote: You probably want to define the exclude array as $this->properties['exclude'] = array( 'runway','dew_c','dew_f' ); Let me know if that works. Cheers, Max <http://launch.yahoo.com/lc/?rt=0&rp1=0&rp2=1453474498> <http://www.incelsite.com/playlist.gif> |