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? Link to comment https://forums.phpfreaks.com/topic/20072-whats-more-organized/ 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. Link to comment https://forums.phpfreaks.com/topic/20072-whats-more-organized/#findComment-88098 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 Link to comment https://forums.phpfreaks.com/topic/20072-whats-more-organized/#findComment-88099 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. Link to comment https://forums.phpfreaks.com/topic/20072-whats-more-organized/#findComment-88108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.