I am looking at redoing my script which has alot of includes and so on
The script once needed register globals to be on, but that part is fixed but i want to get rid of some includes and old coding.
I am looking for the best method to try and start this
here is an example of a part on my index.php page
switch($opt) {
//STANDINGS
case "standings":
include("standings.php");
$output .= listteams($divid,$season);
break;
}
the index.php has a bunch of things on that are similar to this.
so whichever page i will view will always refence the index.php for the required stuff
so say i goto view the standings page it will look for this code above
the case is this when i view it www.whatever.com?opt=standings
i want to be able to make it www.whatever.com/standings
as you can see in the code that it looks for standings.php which is fine i think, but wihin the standings.php it will look for the html output page.
now i am wondering if i can put all this on one page (standings.php) or do i have to have the stuff on the index.php page.
another thing i wanted to make sure of is my configuation page. it has the db info on it and it has site options to turn stuff on and off... now is that ok there or is it something i should add to the database or the back admin section.
any insight on how to start would be appriciated... this script is confusing and it makes things hard to add or edit when viewing doing things.