summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2014-04-20 00:39:57 +0200
committerDamien Regad <dregad@mantisbt.org>2014-04-20 00:39:57 +0200
commite3476198fe40f7da9958434ea7b2784623c3f4ae (patch)
treeb849c9483c7dcc0d9764eabd59526cc406e35888 /README.md
parent99562415916dfd3a180752d59bde1d9f0d276457 (diff)
downloadadodb-e3476198fe40f7da9958434ea7b2784623c3f4ae.tar.gz
adodb-e3476198fe40f7da9958434ea7b2784623c3f4ae.tar.bz2
adodb-e3476198fe40f7da9958434ea7b2784623c3f4ae.zip
Revise readme file
- use Markdown formatting - merge info from docs/readme.htm - Github reference for issues/feature requests
Diffstat (limited to 'README.md')
-rw-r--r--README.md81
1 files changed, 54 insertions, 27 deletions
diff --git a/README.md b/README.md
index a7de809c..cc6e640a 100644
--- a/README.md
+++ b/README.md
@@ -1,67 +1,94 @@
->> ADODB Library for PHP5
+ADODB Library for PHP5
+======================
(c) 2000-2014 John Lim (jlim@natsoft.com)
Released under both BSD and GNU Lesser GPL library license.
This means you can use it in proprietary products.
+Home page: http://adodb.sourceforge.net/
+
Introduction
============
-PHP's database access functions are not standardised. This creates a
+PHP's database access functions are not standardized. This creates a
need for a database class library to hide the differences between the
different databases (encapsulate the differences) so we can easily
switch databases.
-We currently support MySQL, Interbase, Sybase, PostgreSQL, Oracle,
+The library currently supports MySQL, Interbase, Sybase, PostgreSQL, Oracle,
Microsoft SQL server, Foxpro ODBC, Access ODBC, Informix, DB2,
Sybase SQL Anywhere, generic ODBC and Microsoft's ADO.
We hope more people will contribute drivers to support other databases.
-Documentation and Examples
-==========================
+Installation
+============
-Refer to the adodb/docs directory for full documentation and examples.
-There is also a tutorial tute.htm that contrasts ADODB code with
-mysql code.
+Unpack all the files into a directory accessible by your web server.
+To test, try modifying some of the tutorial examples.
+Make sure you customize the connection settings correctly.
+You can debug using:
-Files
-=====
+``` php
+<?php
+include('adodb/adodb.inc.php');
-adodb.inc.php is the main file. You need to include only this file.
+$db = ADONewConnection($driver); # eg. 'mysql' or 'oci8'
+$db->debug = true;
+$db->Connect($server, $user, $password, $database);
+$rs = $db->Execute('select * from some_small_table');
+print "<pre>";
+print_r($rs->GetRows());
+print "</pre>";
+```
-adodb-*.inc.php are the database specific driver code.
-test.php contains a list of test commands to exercise the class library.
+Documentation and Examples
+==========================
-adodb-session.php is the PHP4 session handling code.
+Refer to the `docs` directory for library documentation and examples.
-testdatabases.inc.php contains the list of databases to apply the tests on.
+- Main documentation: `docs-adodb.htm`.
+ Query, update and insert records using a portable API.
+- Data dictionary docs: `docs-datadict.htm`.
+ Describes how to create database tables and indexes in a portable manner.
+- Database performance monitoring docs: `docs-perf.htm`.
+ Allows you to perform health checks, tune and monitor your database.
+- Database-backed session docs: `docs-session.htm`.
-Benchmark.php is a simple benchmark to test the throughput of a simple SELECT
-statement for databases described in testdatabases.inc.php. The benchmark
-tables are created in test.php.
+There is also a tutorial `tute.htm` that contrasts ADOdb code with
+mysql code.
-readme.htm is the main documentation.
-tute.htm is the tutorial.
+Files
+=====
+- `adodb.inc.php` is the library's main file. You only need to include this file.
+- `adodb-*.inc.php` are the database specific driver code.
+- `adodb-session.php` is the PHP4 session handling code.
+- `test.php` contains a list of test commands to exercise the class library.
+- `testdatabases.inc.php` contains the list of databases to apply the tests on.
+- `Benchmark.php` is a simple benchmark to test the throughput of a SELECT
+statement for databases described in testdatabases.inc.php. The benchmark
+tables are created in test.php.
-More Info
-=========
-For more information, including installation see readme.htm
-or visit
- http://adodb.sourceforge.net/
+Feature Requests and Bug Reports
+================================
+Please report bugs, issues and feature requests on Github:
->> Feature Requests and Bug Reports
+https://github.com/ADOdb/ADOdb/issues
-Email to jlim@natsoft.com
+You may also find legacy issues in
+- the old [ADOdb forums](http://phplens.com/lens/lensforum/topics.php?id=4) on phplens.com
+- the [SourceForge tickets section](http://sourceforge.net/p/adodb/_list/tickets)
+However, please note that they are not actively monitored and should
+only be used as reference.