News Feed
Sections




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

Lorna Mitchell's Blog:
PHP REST Server (Part 2 of 3)
September 03, 2008 @ 12:04:26

Lorna Mitchell has posted the second part of her series detailing her REST server development project (part one is here).

This is part 2 of my rest service writing article. In part 1 we saw the library which holds the functionality we will be using, and we also handled the incoming request and captured all the data we'll be using.

In this second part she gets into the details behind the handle() method of the class. It splits the URL into its parts and, based on the action requested, hands it off to the right method and calls the output() method to return to the user. Some error handling is also included (with custom exceptions).

0 comments voice your opinion now!
rest server service tutorial class exception custom


blog comments powered by Disqus

Similar Posts

Evolt.org: Failover Database Connection with PHP + mySQL

Felix Geisendörfer's Blog: Learning from the CakePHP Source Code (Part 1)

DevShed: Migrating Class Code for a MIME Email to PHP 5

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 11)

Vid Luther's Blog: Installing the PHP SSH2 extension in Snow Leopard (10.6)


Community Events





Don't see your event here?
Let us know!


introduction extension composer configure conference interview opinion list series release install voicesoftheelephpant podcast community symfony language unittest version laravel api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework