PHP Driver for NuoDB
This exposes a PHP interface which is similar to the NuoDB C language interface.
This interface is written as a PHP extension. It uses CMake to build. It has been tested using g++ on Linux 64-bit and Visual Studio 2008 on Windows 32-bits.
Please document how to build this; apparently there are some prerequisites. What in addition to these are required?
sudo apt-get install php5 sudo apt-get install php5-dev
Two scripts are provided: do_win32.bat and do_linux64. These scripts will clean out old files, run cmake, then make, then install the PHP extension, and then run the tests/simpletest.php
For Windows, from Visual Studio 2008 (or newer) command prompt, run:
For Linux run:
Installation happens automatically when you run the build script.
TBD Tom - please document running CPack and document how to install the built binaries.
To run simpletest.php, you should have a nuoagent, nuodb archive-manager, and a nuodb transaction processing node running on test@localhost which has the following example hockey db:
create schema hockey use hockey create table players (lastname char(50), firstname char(50)) insert into players(lastname, firstname) values('thomas', 'tim')
This module is released under the NUODB License.