Be careful using this function on case sensitive file systems.
<?php
spl_autoload_extensions('.php');
spl_autoload_register();
?>
I develop on OS X and everything was working fine. But when releasing to my linux server, none of my class files were loading. I had to lowercase all my filenames, because calling a class "DatabaseObject" would try including "databaseobject.php", instead of "DatabaseObject.php"
I think i'll go back to using the slower __autoload() function, just so i can keep my class files readable