Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Bending XML to Your Will
Jan 26, 2012 @ 17:04:44

PHPMaster.com has a new tutorial posted today about "bending XML to your will" - working with XML data using the XML Parser and SimpleXML functionality already included with PHP.

If you've ever worked with the Twitter or Facebook APIs, looked at RSS feeds from a website, or made use of some type of RPC calls, you've undoubtedly experienced working with XML. [...] Knowing how to process XML data is a crucial programming skill today, and thankfully, PHP offers multiple ways to read, filter, and even generate XML. In this article I'll explain what exactly XML is, in case you haven't had any experience with it yet, and then dive into a few ways you can use PHP to bend XML to your will.

He introduces the concepts and syntax behind XML first for those not accustomed and quickly moves into the tools to parse it. First he looks at the XML Parser, an event-based parser, and SimpleXML, an easy way to access the contents of a well-formed XML document. Snippets of code are provided for each to show you how to put them into practice.

tagged: xml tutorial parse eventbased simplexml introduction

Link:

Jake Blauzier's Blog:
Event-Based AJAX Framework for PHP
Jun 12, 2008 @ 16:18:31

Jake Blauzier has just posted the last part of his series focusing on the creation of an event-based Ajax framework that works with PHP. It allows for calls to static functions, can return Javascript representations of PHP objects and a "call queue" system to keep things from overlapping.

Here's the list of the parts of the series:

  • Part 1 - introduction, sample usage
  • Part 2 - problems in making an event-based ajax callback model (and his solutions)
  • Part 3 - the use of JSON in the framework
  • Part 4 - implementation of the Scriptifiable interface
  • Part 5 - implementing the Remotable interface

You can download the latest version of his Ajax framework directly from his blog.

tagged: eventbased ajax framework series json callback scriptifiable remotable

Link:


Trending Topics: