ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


project:include_file_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:include_file_guide [2016/01/13 01:57] – ↷ Links adapted because of a move operation mnewnhamproject:include_file_guide [2022/07/08 14:02] (current) – [Core Library] dregad
Line 1: Line 1:
 ====== Include File Guide ====== ====== Include File Guide ======
 ===== Description ===== ===== Description =====
-This page describes the required and optional include files for use in applications. Other helpful notes are:+This page describes the required and optional include files for use in applications.
  
-  There is currently no support for autoloading+<WRAP important> 
-  There is currently no support for namespacing +Please note that **ADOdb version 5 does not support //autoloading// or //namespaces//**.
  
-===== Core application =====+When using Composer, only the Library's core ''adodb.inc.php'' is included for you.  
 +If your project requires additional components, the relevant files still need to be included as described in this document. 
 +</WRAP> 
 + 
 +===== Core Library =====
 The following include file is required for all database applications: The following include file is required for all database applications:
 <code php> <code php>
Line 14: Line 18:
 prior to inclusion of the file, the following constant may optionally be defined: prior to inclusion of the file, the following constant may optionally be defined:
  
-[[reference:ADODB_FETCH_MODE]]+[[v5:reference:adodb_fetch_mode]] 
 + 
 +Any necessary driver and library files are automatically included, based on Connection requirements. 
 +However, if you are modifying ADOdb files and are having difficulties debugging, your optional core includes can look like this:
  
-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: 
 <code php> <code php>
 require 'adodb-directory/adodb.inc.php'; require 'adodb-directory/adodb.inc.php';
Line 24: Line 30:
 require 'adodb-directory/datadict/datadict-{driver}.inc.php'; require 'adodb-directory/datadict/datadict-{driver}.inc.php';
 </code> </code>
 +
 +<WRAP tip>
 +When using Composer, with default settings the actual value for the //adodb-directory// include path is ''vendor/adodb/adodb-php/''.
 +</WRAP>
  
 ===== Date/Time Library ===== ===== Date/Time Library =====
-The ADOdb [[datetime:datetime_library|Date/Time Library]] is standalone and does not require a database connection.+The ADOdb [[v5:datetime:datetime_index|Date/Time Library]] is standalone and does not require a database connection.
  
 <code php> <code php>
Line 33: Line 43:
  
 ===== Session Management Library ===== ===== Session Management Library =====
-The ADOdb [[v5:session:session_library|Session Library]] should be included after the database handler. Make sure to use the **adodb-session2.inc.php**, not **adodb-session.inc.php**.+The ADOdb [[v5:session:session_index|Session Library]] should be included after the database handler. Make sure to use the **adodb-session2.inc.php**, not **adodb-session.inc.php**.
 <code php> <code php>
 require 'adodb-directory/adodb.inc.php'; require 'adodb-directory/adodb.inc.php';
 require 'adodb-directory/session/adodb-session2.inc.php'; require 'adodb-directory/session/adodb-session2.inc.php';
 +</code>
 +==== Using Encrypted Data ====
 +<code php>
 +require 'adodb-directory/adodb.inc.php';
 +require 'adodb-directory/session/adodb-cryptsession2.inc.php';
 +</code>
 +==== Storing Data In CLOBS ====
 +Do not use this with Oracle Databases.
 +<code php>
 +require 'adodb-directory/adodb.inc.php';
 +require 'adodb-directory/session/adodb-session-clob2.inc.php';
 </code> </code>
  
 ===== ADOdb-xmlschema ===== ===== ADOdb-xmlschema =====
-The ADOdb [[v5:session:session_library|Session Library]] should be included after the database handler. Make sure to use the **adodb-xmlschema03.inc.php**, not **adodb-xmlschema.inc.php**.+The ADOdb [[v5:session:session_index|Session Library]] should be included after the database handler. Make sure to use the **adodb-xmlschema03.inc.php**, not **adodb-xmlschema.inc.php**.
 <code php> <code php>
 require 'adodb-directory/adodb.inc.php'; require 'adodb-directory/adodb.inc.php';
project/include_file_guide.1452646651.txt.gz · Last modified: 2017/04/21 11:19 (external edit)