Loading ...
Sorry, an error occurred while loading the content.

Re: [json] Help needed please....

Expand Messages
  • jonathan wallace
    php has a built in function called json_decode. You give it a string and it returns you a stdClass, from there you can do whatever you want.
    Message 1 of 2 , May 29, 2010
    • 0 Attachment
      php has a built in function called json_decode. You give it a string and it returns you a stdClass, from there you can do whatever you want.




      ________________________________
      From: Gary <kaimaikid@...>
      To: json@yahoogroups.com
      Sent: Sat, May 29, 2010 3:24:31 PM
      Subject: [json] Help needed please....


      Hi,
      I'm new to the group as well as to using json and am wondering if someone can write me a json script for .php webpage please?

      What I need is to be able to get a json string (txt) from an url at say hourly intervals

      http://metservice.com/publicData/severeWeatherWarning

      parse it and write it to a cache such as warning.txt keeping the html format in the text.

      and then have the webpage display the info from the warning.text without hotlinking directly back to the source
      when my page is opened each time, only going back to the url at the hourly intervals to check for an update.

      also for a separate webpage in php

      A script to fetch an image from a json string again at hourly intervals from

      http://metservice.com/publicData/rainRadarLocL0Auckland

      and

      http://metservice.com/publicData/rainRadarLocL1Auckland

      write both images to a folder on my site such as rainpic saving both images as say rain0 and rain1
      so that they overwrite the previous images and done so that it caches and not hotlinking back to the original site

      The displaying part is easy for me to sort here.

      The reason for caching is to reduce bandwidth use on their site and not tying up their resources as their load can
      get heavy at times.

      Many thanks in advance
      Gary

      [Non-text portions of this message have been removed]







      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.