Best way to organize php?

Discussion in 'PHP' started by wwwbryan, Feb 25, 2009.

  1. #1
    What is the best way to organize php? Examples? Tutorial links?

    Does it really matter how it's organized? Security? Speed? Stability?
     
    wwwbryan, Feb 25, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use those little plastic sets of drawers with the color-coded tabs.
     
    SmallPotatoes, Feb 25, 2009 IP
  3. johnmackay

    johnmackay Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am not sure exactly what your question meant,but you can use an ide like phpdesigner for better productivity.
     
    johnmackay, Feb 25, 2009 IP
  4. uio

    uio Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ...or you can use some Framework like Zend, Cake, Codeigniter.... this will help you in many ways
     
    uio, Feb 26, 2009 IP
  5. shiatsu

    shiatsu Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Using a framework (or building one of you own) it's the only true way to keep things tidy. PHP can be like a spaghetty dish :p
     
    shiatsu, Feb 26, 2009 IP
  6. wwwbryan

    wwwbryan Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #6
    I mean like sort of the way it's coded kinda.
     
    wwwbryan, Feb 26, 2009 IP
  7. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That clears it up!
     
    SmallPotatoes, Feb 26, 2009 IP
  8. jimbo2779

    jimbo2779 Active Member

    Messages:
    105
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
    #8
    Hehe I wouldn't worry how it is 'sorted' as much as I would worry about making sure you can understand it later on when you have not looked at it for a couple of months. Make sure you comment everything so that you know what functions do what and all major stepping stones in the code.

    Indentation is also a great way to see where each conditional / loop / function starts and stops. I would suggest dreamweaver as an IDE as it is just real easy though it will not give you the same code options that other IDEs will (I am still using DW8 though so maybe the newer ones do).
     
    jimbo2779, Feb 27, 2009 IP