Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 14th, 2006, 12:43 AM
Registered User
 
Join Date: Mar 2006
Location: , , Canada.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSON-PHP v. PHP-JSON

Hello,

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...

Thanks.

Reply With Quote
  #2 (permalink)  
Old March 14th, 2006, 11:02 AM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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)
http://www.nczonline.net/
Reply With Quote
  #3 (permalink)  
Old August 17th, 2011, 08:52 AM
Registered User
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
http://www.w3resource.com/JSON/introduction.php
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# JSON Library radhakrishnane BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 January 21st, 2009 09:36 AM
C# object to/from JSON possible?!? quantass BOOK: Beginning Ajax with ASP.NET 1 January 21st, 2009 09:32 AM
JSON and ScriptService balesh.mind ASP.NET 3.5 Basics 0 December 4th, 2008 08:14 AM
error in json.js vinayhk BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 0 May 26th, 2008 08:34 AM
JSON and html form pegasus51 Ajax 0 January 28th, 2007 06:12 PM



All times are GMT -4. The time now is 09:10 PM.


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