http://www.php.net/manual/en/book.json.php
Sent via DROID on Verizon Wireless
-----Original message-----
From: Simon J Welsh <simon@xxxxxxxxxxx>
To: Michelle Konzack <linux4michelle@xxxxxxxxxxxxxxx>
Cc: PHP - General <php-general@xxxxxxxxxxxxx>
Sent: Fri, Apr 1, 2011 21:23:22 GMT+00:00
Subject: Re: Looking for Tool to read JSON format
On 2/04/2011, at 10:19 AM, Michelle Konzack wrote:
Hello *,
curently I am coding on my new Intranet Interface, but some teleguided
servers return only JSON or YAML files.
Can someone tell me, how to import JSON files in PHP 5/6?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
json_decode(file_get_contents('http://domain/file.json'));
If you need to do a POST rather than a GET, use curl and pass the output
from curl_exec() to json_decode().
---
Simon Welsh
Admin of http://simon.geek.nz/
Who said Microsoft never created a bug-free program? The blue screen never,
ever crashes!
http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php