Forum Moderators: coopster

Message Too Old, No Replies

How do I syndicate weather?

Just show highs and lows...simple stuff.

         

Br3nn4n

4:00 pm on Jun 22, 2008 (gmt 0)

10+ Year Member



So uh, Yahoo has some API stuff that I came across but apart from using regex (which I can't seem to get to work for this for some reason) I am at a loss as to how to do this. I need the numbers of the highs and lows and maybe the image Yahoo provides.

Here's their page:

[developer.yahoo.com...]

cameraman

6:17 pm on Jun 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have a look at the SimpleXML [php.net] functions.

Br3nn4n

12:02 am on Jun 24, 2008 (gmt 0)

10+ Year Member



There a way to check if my host has it installed? (erm, maybe it comes with the PHP package? does it? lol)

cameraman

5:39 am on Jun 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think it's generally installed with php5, but it is an extension.
Write a script with a standard html shell and the single php line:
phpinfo();

in the body and you'll see what all your host has installed. Protect it or delete it afterward; you don't want would-be hackers to see some of the information it imparts.

Br3nn4n

7:56 am on Jun 24, 2008 (gmt 0)

10+ Year Member



Yeah, it's installed at my host, they have php 5 installed and the simplexml_load_file works on the Yahoo feed via url. :) I'm really close to having it parsed too, I'll let you know what happens.

thanks a lot for the tip