Posted By

alexwilliams on 01/01/07


Tagged

class php autoload


Versions (?)

Load a PHP Class automatically upon instantiation (PHP5)


 / Published in: PHP
 

  1. function __autoload($class_name) {
  2. require_once("classes/" . $class_name . ".php");
  3. }
  4.  
  5. $auth = new Auth;

Report this snippet  

You need to login to post a comment.