Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1451
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Fri, 06 May 2011 21:24:38 -0500 |
| From | MacRoks <macroks@aim.com> |
| Newsgroups | comp.lang.php |
| Date | Fri, 6 May 2011 22:24:37 -0400 |
| Message-ID | <2011050622243721017-macroks@aimcom> (permalink) |
| References | <3ee924e7-17da-4cd0-95f6-b74d235ed084@z7g2000prh.googlegroups.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Subject | Re: getting only the temperature & general weather condition |
| User-Agent | Unison/2.1.2 |
| Lines | 42 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-boX0+OGsufRDgaJ00TwtNz0CgulcNyRe8HIDWudL7igX31VNQ1IAv2tVotNC8O3xfK7tr6vEP3yjxRV!04dQsRFknoPL9OBChwFG/9dh8uUUe47qyDOyb8yOAMGgWa4fM4CO1tSvrg== |
| X-Complaints-To | abuse@giganews.com |
| X-DMCA-Notifications | http://www.giganews.com/info/dmca.html |
| 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 | 2146 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:1451 |
Show key headers only | View raw
On 2011-05-06 18:22:33 -0400, Evolution said: > 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! What version of PHP do you have? -- MacRoks --------------------------- Kindle 3 Wifi+3G MacBook iPod Touch 3G 64 GB HP Palm Pre
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