Return to Snippet

Revision: 2126
at January 1, 2007 11:13 by alexwilliams


Updated Code
function __autoload($class_name) {
    require_once("classes/" . $class_name . ".php");
}

$auth = new Auth;

Revision: 2125
at January 1, 2007 11:07 by alexwilliams


Initial Code
function __autoload($class_name) {
    require_once("classes/" . $class_name . ".php");
}

$auth = new Auth;

Initial URL

                                

Initial Description

                                

Initial Title
Load a PHP Class automatically upon instantiation (PHP5)

Initial Tags
class, php

Initial Language
PHP