tleisher Posted September 8, 2006 Share Posted September 8, 2006 When creating a large PHP script, should I just have a ton of if ($_GET["page:) = "register") again and again in one big index.php file, or should I craete various files like index.php, register.php, login.php, etc? Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 8, 2006 Share Posted September 8, 2006 Personally, I like lots and lots of pages all of which use a common included header and a common included footer. Quote Link to comment Share on other sites More sharing options...
tleisher Posted September 8, 2006 Author Share Posted September 8, 2006 That's the way I have things setup now, but I was thinking of going something like this:index.php?page=members&sortby=CRather then having a sepate file like this:members.php?sortby=C Quote Link to comment Share on other sites More sharing options...
SharkBait Posted September 8, 2006 Share Posted September 8, 2006 Personally I think its easier to go through multiple pages of code rather than a HUGE single document of all the code.I look at my scripts and I fid it easier to go through 100-200lines as opposed to 500+ lines to find that missing curly brace.It looks alot neater too, or so I think. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.