okay not to be too picky, but why on earth would you use a switch? Every time you want to add a page you would need to code in another "case" stmt.
Why not just dynamically include it after you check if the file exists. (yes, php supports dynamic includes, and I hope they *never* change that)
i.e.
Code: Select all
if($page){
include $page.".php";
}I have been setting up sites like this for a long time (i.e. ipn.joihost.com, http://listbid.com/affil/ actually all of listbid.com etc etc.. etc...)
I agree with you that it is the coolest (and fastest) way to program sites (and by the way, googlebot loves them) and like that you are promoting gateway index sites, but using switch, in a larger site like listbid.com where I have 100+ subpages, it is just not workable.
-joedg