Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1457
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: getting only the temperature & general weather condition |
| Date | 2011-05-07 07:17 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <iq39od$nvt$1@dont-email.me> (permalink) |
| References | <3ee924e7-17da-4cd0-95f6-b74d235ed084@z7g2000prh.googlegroups.com> <iq26ui$hf1$1@dont-email.me> <lr-dnSAMQLtAhFjQnZ2dnUVZ_qOdnZ2d@cablespeedmi.com> |
On 5/7/2011 6:07 AM, bill wrote: > On 5/6/2011 9:23 PM, Jerry Stuckle wrote: >> On 5/6/2011 6:22 PM, Evolution wrote: >>> On phpbuilder.com, I found the following: >>> >>> http://www.phpbuilder.com/board/showthread.php?t=10283087 >>> >>> which discusses how to obtain the current weather for a feed >>> closest >>> to you. >>> >>> I modified the code to my site but didn't get the same results as >>> shown by Kudose (a poster at the bottom of that same page). >>> >>> My code is: >>> <? >>> session_register(); >>> session_start(); >>> $url = 'http://www.nws.noaa.gov/data/current_obs/KSBA.xml'; >>> $xml = simplexml_load_file($url); >>> >>> echo '<b>Santa Barbara weather:</b><br />'; >>> echo $xml->weather, '<br />'; >>> echo $xml->temperature_string, '<br />'; >>> echo $xml->relative_humidity, '% humidity<br />'; >>> ?> >>> >>> and the impaired results are on a test page at: >>> >>> http://www.geol.ucsb.edu/library/php/weather.php >>> >>> Can anybody point me in the right direction? I'm essentially a >>> newbie. >>> Thanks! >> >> The code works for me. >> >> > On Firefox 3.17 I get > ---------------------- > Santa Barbara weather: > > > % humidity > -------------------- > which is not the desired result > > bill On the same version of firefox I get: Santa Barbara weather: Fog/Mist 55.0 F (12.8 C) 90% humidity Which is the desired result. But the browser has absolutely nothing to do with it. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
getting only the temperature & general weather condition Evolution <cryptozoan@gmail.com> - 2011-05-06 15:22 -0700
Re: getting only the temperature & general weather condition Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-06 21:23 -0400
Re: getting only the temperature & general weather condition bill <nobody@spamcop.net> - 2011-05-07 06:07 -0400
Re: getting only the temperature & general weather condition Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-07 07:17 -0400
Re: getting only the temperature & general weather condition bill <nobody@spamcop.net> - 2011-05-07 07:28 -0400
Re: getting only the temperature & general weather condition Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-07 07:40 -0400
Re: getting only the temperature & general weather condition Evolution <cryptozoan@gmail.com> - 2011-05-07 03:21 -0700
Re: getting only the temperature & general weather condition Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-07 07:23 -0400
Re: getting only the temperature & general weather condition Evolution <cryptozoan@gmail.com> - 2011-05-08 00:07 -0700
Re: getting only the temperature & general weather condition Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-08 08:11 -0400
Re: getting only the temperature & general weather condition Evolution <cryptozoan@gmail.com> - 2011-05-08 16:29 -0700
Re: getting only the temperature & general weather condition Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-08 21:53 -0400
Re: getting only the temperature & general weather condition MacRoks <macroks@aim.com> - 2011-05-06 22:24 -0400
Re: getting only the temperature & general weather condition Evolution <cryptozoan@gmail.com> - 2011-05-07 03:17 -0700
Re: getting only the temperature & general weather condition MacRoks <macroks@aim.com> - 2011-05-07 20:39 -0400
csiph-web