If statements vs. other options - displaying pages
Posted: Mon Jul 18, 2005 1:11 pm
Hello,
I'm not sure how I should set this up. I have a section of my site that needs to be able to support high traffic loads so I want the best bandwidth setup I can get. I'm not sure how I should display the pages. Right now I have one file with about 1,500 lines of code. It is all if statements to display the pages. I think it may be better to split these up into multiple files and then make an include file containing the functions everything shares. I also thought of using a switch in one file that includes each individual page and processing when needed. Can someone provide the pros and cons of these to better help me decide what options I have and which to go with. Thanks in advance.
I'm not sure how I should set this up. I have a section of my site that needs to be able to support high traffic loads so I want the best bandwidth setup I can get. I'm not sure how I should display the pages. Right now I have one file with about 1,500 lines of code. It is all if statements to display the pages. I think it may be better to split these up into multiple files and then make an include file containing the functions everything shares. I also thought of using a switch in one file that includes each individual page and processing when needed. Can someone provide the pros and cons of these to better help me decide what options I have and which to go with. Thanks in advance.