Check readiness
EZPDO has a simple script to check if your system is ready for EZPDO. After you extract the package, on command line, simply type
cd /path/ezpdo/is/extracted/into cd scripts php check.sh
PHP 5.0.4 or up
EZPDO requires PHP 5.0.4 or up1) with extensions tokenizer, xml, sipmlexml, sqlite, and mysql (optional) enabled. Except mysql (optional), all the extensions are enabled by default in PHP 5.
Set up PHP5 fast
To quickly set up a Web server with PHP5 support, you might want to try XAMPP from www.apachefriends.org.
Notes on libraries
EZPDO has been made a self-contained package. You can now simply download the EZPDO package, unzip and you are good to go! Read on only if you want to use PEAR DB or libraries out of the package.
PEAR DB
The default database library is ADODb. Unless you prefer PEAR DB to ADODb, you do not need to install any PEAR package.
In case you would like to use PEAR DB instead of ADODb, please follow the PEAR installation instructions. For a system with PEAR set up already, this could be as simple as
pear install DB
or if DB already installed
pear upgrade DB
Make sure you are using version 1.7.2 or up. In config.xml, you need to set option db_lib to peardb.
<!-- The database abstraction library you want to use: default to adodb--> <!-- Currently available options: adodb, peardb --> <db_lib>peardb</db_lib>
ADODb and SimpleTest
The EZPDO distribution comes with ADODb and SimpleTest. The default location is libs/adodb and libs/simpletest under your EZPDO install directory. In case you want to use the libraries installed in different locations, you can define the following constants before including EZPDO runtime API (ezpdo_runtime.php)
define('EP_LIBS_ADODB','/path/to/my/adodb/install'); define('EP_LIBS_SIMPLETEST', '/path/to/my/simpletest/install');
Acknowledgement
A special word of gratitude and appreciation is extended to the hardworking authors of the libraries.