/ Published in: PHP
bob.php and bob2.php are my 2 class files
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function __autoload($class_name) { require_once $class_name.".php"; } $bob = new bob(); $bob2 = new bob2(); ?>