<?php function ___autoload ($class) { $file = "$class.inc.php"; include_once( $file ); } $test = new YourClassName(); ?>