Login   Register  
PHP Classes
elePHPant
Icontem

File: config.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QDataObject  >  config.inc.php  >  Download  
File: config.inc.php
Role: Configuration script
Content type: text/plain
Description: Configuration and Autoloading
Class: QDataObject
Access MySQL query results as objects
Author: By
Last change:
Date: 2008-07-20 02:13
Size: 485 bytes
 

Contents

Class file image Download
<?php

//provide your connection data here
define('db_default_host''localhost');
define('db_default_user''dispo');
define('db_default_password''dispo');
define('db_default_database''northwind');

function 
__autoload($className=null) {
    
$classes = array (
        
'QTag.class.php'
        
'QDataObject.class.php'
    );

    foreach(
$classes as $class) {
        include_once(
$class);
    }
    if(!
class_exists($className)) {
        include_once(
$className.".class.php");
    }
}