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

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

Expand Messages
  • jonathan wallace
    May 29, 2010
      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....

      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


      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




      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

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

      [Non-text portions of this message have been removed]
    • Show all 2 messages in this topic