PHP Classes
elePHPant
Icontem

File: includes/functions.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of SPAM  >  pork.dbObject  >  includes/functions.php  >  Download  
File: includes/functions.php
Role: Class source
Content type: text/plain
Description: functions libary
Class: pork.dbObject
Map objects into MySQL database table rows
Author: By
Last change:
Date: 8 years ago
Size: 260 bytes
 

Contents

Class file image Download
<?

function __autoload($className)
{
   
$className = strtolower($className);
   
$classFile = "./includes/class.{$className}.php";
    if (
file_exists($classFile))
    {
        include(
$classFile);
    }
    else
    {
        die(
print_r("$classFile not found!"));
    }
}

?>