Jump to content

Archived

This topic is now archived and is closed to further replies.

tleisher

What's more organized?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Personally, I like lots and lots of pages all of which use a common included header and a common included footer.

Share this post


Link to post
Share on other sites
That's the way I have things setup now, but I was thinking of going something like this:

index.php?page=members&sortby=C

Rather then having a sepate file like this:

members.php?sortby=C

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.