Using Oracle in a REST Web Service

A few years back, Jacob Wright wrote an excellent PHP Rest Web Service utility. His scripts set up a "Bare-Bones" REST Web Services which allowed GET and POST requests.

You can read about it here at his website:

http://jacwright.com/250/simple-rest-server-in-php-supports-json-amf

Adding Oracle extensions to this code seemed like a logical next-step.

These scripts allow you setup REST-based webservices that interface with an Oracle Database.

To set this up, grab the following files:

1. Original Restserver files: https://github.com/jacwright/RestServer

2. Nyquest OCI Extensions file:

Prior to running this, make sure that apache built to ALLOW URL Rerwites (./configure --enable-rewrite)

Once apache is setup, drop PHP over it and you should be all set.