Re: Looking for Tool to read JSON format

From: Date: Fri, 01 Apr 2011 21:34:39 +0000
Subject: Re: Looking for Tool to read JSON format
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-312207@lists.php.net to get a copy of this message
http://www.php.net/manual/en/book.json.php Sent via DROID on Verizon Wireless -----Original message----- From: Simon J Welsh <simon@welsh.co.nz> To: Michelle Konzack <linux4michelle@tamay-dogan.net> Cc: PHP - General <php-general@lists.php.net> Sent: Fri, Apr 1, 2011 21:23:22 GMT+00:00 Subject: Re: [PHP] 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

« previous php.general (#312207) next »