<?php
 
     /**
 
     * Example script
 
     * Example of using Singleton class
 
     * 
 
     * @version:    1.0.1
 
     * @author:     Sebastian Potasiak
 
     * @update:     2009-12-10
 
     * @license:    GNU/GPL
 
     */
 
     
 
     function __autoload($class)
 
     {
 
          if (!class_exists($class) || !interface_exists($class)) 
 
               include("{$class}.php");
 
     }
 
     
 
     $obj = MyClass::getInstance();
 
    
 
     $obj->sayHello();
 
?>
 
 |