PHP Classes
elePHPant
Icontem

File: init.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Björn Puttmann  >  OoMySql  >  init.inc.php  >  Download  
File: init.inc.php
Role: Configuration script
Content type: text/plain
Description: init file - includes all classes
Class: OoMySql
OO MySQL interface with logging support
Author: By
Last change:
Date: 12 years ago
Size: 707 bytes
 

Contents

Class file image Download
<?
/* init page
    here we define all globals and include our baseclasses */
DEFINE("LOGFILE_PATH", "logs/");
DEFINE("LOGFILE", "test");
DEFINE("ROTATION_PERIOD","MONTHLY");
DEFINE("ERROR_MODE","printout");

/* include and invoke our logger class */
require_once("logger.class.php");
$LOGGER = new Logger(LOGFILE_PATH,LOGFILE,ROTATION_PERIOD);

/* include and invoke our exception class */
require_once("exception.class.php");
$ERROR = new Exception(LOGFILE_PATH,LOGFILE,ROTATION_PERIOD,ERROR_MODE);

/* include our base sql class */
require_once("mysql.class.php");
/* include our database class */
require_once("mysqldb.class.php");
/* include our table class */
require_once("mysqltable.class.php");
?>