Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1454
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.glorb.com!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.cablespeedmi.com!news.cablespeedmi.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Sat, 07 May 2011 05:07:24 -0500 |
| Date | Sat, 07 May 2011 06:07:24 -0400 |
| From | bill <nobody@spamcop.net> |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.php |
| Subject | Re: getting only the temperature & general weather condition |
| References | <3ee924e7-17da-4cd0-95f6-b74d235ed084@z7g2000prh.googlegroups.com> <iq26ui$hf1$1@dont-email.me> |
| In-Reply-To | <iq26ui$hf1$1@dont-email.me> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <lr-dnSAMQLtAhFjQnZ2dnUVZ_qOdnZ2d@cablespeedmi.com> (permalink) |
| Lines | 47 |
| X-Usenet-Provider | http://www.giganews.com |
| NNTP-Posting-Host | 24.56.193.205 |
| X-Trace | sv3-xawgmKftuzyBFU3CWNBcdHi2H2jlCBWTctg5eK0m70PWzZb6diqczYzmnf2yaUX6OLONmf6NxJvEUid!/I1RLtv8RabGeDZGXSNMRp49uQ/W2QaJLwQa2cufKu9FSMvdlR+OeA4firkizmaulAyCrphRisS6!hi+T7INRTdLxHlpidL+IhDvf0w== |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 2416 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:1454 |
Show key headers only | View raw
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
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