Quickstart
===========

This webapp is a sample application of XpSQL using PHP.
To run this application, access by browser on the enviroment
which PHP and Pear, and HTTPD runs.

The step of setting is as following.

1. Create table in the database.

 Creates tables which used by the sample application.

 $ cd demo/data/sql
 $ su - postgres -c "/usr/local/pgsql/bin/psql yourdbname < create_schema.sql"
 $ su - postgres -c "/usr/local/pgsql/bin/psql yourdbname < initdata.sql"

2. Setup the environment.

 Set the 'demo/include/define.inc' file to your environment.
 Edit the stuffs below.
 
 define('ENV_PRJROOT', '/home/yui/workspace/XpSQL-head/webapp/demo/');
 $DB_USER = 'postgres';
 $DB_PASSWD = 'p1914s';
 $DB_HOST = 'localhost:5432';
 $DB_NAME = 'xpsql02';

3. Run the sample.

  Access to the demo/index.html(e.g. http://localhost/webapp/demo/index.html)
 which published by HTTPd.


