Organizing objects and libraries
Put your library/class files in a common directory. Something like:
www |_includes | |_classes | | |_view.php | |_config | |_database.php |_other_folder |_index.php
You can then set a common include path in your .htaccess file to this "includes" directory:
php_value include_path .:/path/to/www/includes
Then the other_folder/index.php file just needs something like:
require_once('config/database.php');require_once('classes/view.php');