This is the simple idea use in Joomla / Wordpress / Cakephp & other open source.
In your index.php, use:
require( dirname( __ FILE__ ).'/c/c.php');
and in class construction, use:
$xml = simplexml_load_file(dirname( __ FILE__ ) .'/b/b.xml');
Let me know if this works.
Thanks, Munjal