News Feed
Sections




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

Jan Lehnardt's Blog:
CouchDb Views with PHP
September 18, 2007 @ 09:32:00

Showing off the ever-expanding reach of the CouchDb functionlity, Jan Lehnardt has posted a new blog entry about another way (besides with Javascript) that you can make views with the CouchDb software - with PHP.

CouchDB lets you hook up any language interpreter or compiler & executor via a simple line-based protocol that gets exchanged over standard in- and output. The core PHP code to wrap the PHP interpreter around that protocol and stdio is not even 70 lines of code and 130 with a some helper functions and comments. It needs PHP 5 and the JSON extension.

A code example is included showing how to make a sample request back to the CouchDb and the script to handle the parsing. If you'd like to customize things a bit more, check out the wiki pages for the protocol to get started.

0 comments voice your opinion now!
couchdb view javascript example database couchdb view javascript example database


blog comments powered by Disqus

Similar Posts

Jim Plush\'s Blog: AJAX, PHP and Javascript Errors - How to get more data

DZone.com: GladiusDB and Firebird: Databases for Your PHP Apps

Zend Developer Zone: Getting started with CouchDB : meet PHP on Couch

C7Y Community Site: Handling Images with PHP

NETTUTS.com: How To Use Any Font You Wish with FLIR


Community Events





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


code podcast release introduction unittest configure series language testing opinion list refactor framework threedevsandamaybe developer laravel wordpress interview community install

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