p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Ajax ISBN: 978-0-471-77778-6 (http://p2p.wrox.com/forumdisplay.php?f=244)
-   -   JSON-PHP v. PHP-JSON (http://p2p.wrox.com/showthread.php?t=39769)

bcrocks March 14th, 2006 12:43 AM


I have been fighting with the example in Chapter 7 for almost 5 hours...only to realise that PHP-JSON may not contain the same functionality as JSON-PHP.

Based on the "Other Tools" section of Chapter 7, I thought PHP-JSON would be the logical choice and simple replacement, given I seek the fastest server components. The PHP-JSON website identifies performance gains over native PHP, but I could not get the example to work until I added the line to include JSON-PHP. The cryptic error messages led me nowhere, until I read the last post (see http://p2p.wrox.com/topic.asp?TOPIC_ID=41360). BTW, the module is installed, as phpinfo() reports it.

Is there functionality in JSON-PHP that is not in PHP-JSON? Any additional comments or thoughts? I am new to JSON and suspect I need to do some more reading...


nzakas March 14th, 2006 11:02 AM

JSON-PHP and PHP-JSON are two completely different libraries (one is not a port of another). You'd need to refer to the documentation for the library you are using.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)

skueoe August 17th, 2011 07:52 AM

json - php
As you are new to json try the following site with Installation of JSON in PHP, PHP json_decode function, PHP json_encode function, PHP json_last_error() function.

All times are GMT -4. The time now is 09:45 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.