PHP Classes

File: autocargador.php

Recommend this page to a friend!
  Classes of Jose Antonio Valle Minjares   PHP DAL Generator   autocargador.php   Download  
File: autocargador.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP DAL Generator
Generate classes to access MySQL table records
Author: By
Last change:
Date: 10 years ago
Size: 371 bytes
 

Contents

Class file image Download
<?php
function __autoload($classname) {
   
   
$directorys = array(
       
'generador/cab/'
   
);

    foreach(
$directorys as $directory)
    {
        if(
file_exists($directory.$classname . '.php'))
        {
           
$full_file = $directory.$classname . '.php';
           
            require_once(
$full_file);
            return;
        }
    }
}