I have been using a structure for my PHP apps that has a central controller that all http requests go through.


<?php
include('db_fnc.php');
db_connection();
$controller="home";...