- skip to content

# Database Abstraction Layer

### User Tools

- Login

### Site Tools

- Recent changes
- Media Manager
- Sitemap

### Sidebar

##### Resources

- Reference Manual
- User Guide
- The Data Dictionary
- ADOdb-xmlschema
- ADOdb Active Record
- Performance Monitoring
- Date/Time Library
- Session Management Library
- Unsupported Addons
- Coding Standards

##### Supported Databases

- Access
- ADO
- CSV
- Firebird
- Frontbase
- IBM DB2
- Informix
- Interbase
- LDAP
- Microsoft SQL Server
- MySQL
- Netezza
- ODBC
- ODBTP
- Oracle
- PDO
- Postgresql
- SAP ADS
- SAP ASE
- SAP Maxdb
- SAP Sqlanywhere
- Sqlite
- Sybase
- Plain Text
- Visual Foxpro

##### Other

- Feature Comparison Matrix
- Connection Matrix
- Include File Guide

project:include_file_guide

# Include File Guide

## Description

This page describes the required and optional include files for use in applications. Other helpful notes are:

- There is no support in ADOdb Version 5 for autoloading.
- There is no support in ADOdb Version 5 for namespacing

## Core application

The following include file is required for all database applications:

    require 'adodb-directory/adodb.inc.php';

prior to inclusion of the file, the following constant may optionally be defined:

adodb_fetch_mode

Any driver and library files automatically include, based on driver and requirements. However, if you are modifying ADOdb file and are having difficulties debugging, your optional core includes can look like this:

    require 'adodb-directory/adodb.inc.php';
    require 'adodb-directory/adodb-lib.inc.php';
    require 'adodb-directory/drivers/adodb-{driver}.inc.php';
    require 'adodb-directory/adodb-datadict.inc.php';
    require 'adodb-directory/datadict/datadict-{driver}.inc.php';

## Date/Time Library

The ADOdb Date/Time Library is standalone and does not require a database connection.

    require 'adodb-directory/adodb-time.inc.php';

## Session Management Library

The ADOdb Session Library should be included after the database handler. Make sure to use the adodb-session2.inc.php, not adodb-session.inc.php.

    require 'adodb-directory/adodb.inc.php';
    require 'adodb-directory/session/adodb-session2.inc.php';

### Using Encrypted Data

    require 'adodb-directory/adodb.inc.php';
    require 'adodb-directory/session/adodb-cryptsession2.inc.php';

### Storing Data In CLOBS

Do not use this with Oracle Databases.

    require 'adodb-directory/adodb.inc.php';
    require 'adodb-directory/session/adodb-session-clob2.inc.php';

## ADOdb-xmlschema

The ADOdb Session Library should be included after the database handler. Make sure to use the adodb-xmlschema03.inc.php, not adodb-xmlschema.inc.php.

    require 'adodb-directory/adodb.inc.php';
    require 'adodb-directory/adodb-xmlschema03.inc.php';

project/include_file_guide.txt · Last modified: 2016/01/16 17:59 by mnewnham

### Page Tools

- Show pagesource
- Old revisions
- Backlinks
- Rename Page
- Back to top