ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


project:include_file_guide

This is an old revision of the document!


Include File Guide

Description

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

  • There is currently no support for autoloading.
  • There is currently no support 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';

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.1452701847.txt.gz · Last modified: 2017/04/21 11:19 (external edit)