PHP Classes

File: includes/functions.php

Recommend this page to a friend!
  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: 17 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!"));
    }
}

?>