Planning a PHP project, how do you do it?

Discussion in 'PHP' started by ehlokoen, Nov 17, 2007.

  1. #1
    I'm currently planning on making a new PHP project. I mean, everyone should plan before creating a php project.

    But, there are several methods. And I was wondering, what's your method on planning a project?

    Please share with me, as I might be able to learn from it. And hey, when one can learn about things related to PHP, who would deny such a chance? At least not me. :)
     
    ehlokoen, Nov 17, 2007 IP
  2. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #2
    jakomo, Nov 17, 2007 IP
  3. ehlokoen

    ehlokoen Peon

    Messages:
    161
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, I've got that tutorial from there saved on my HD. Just wanted to know if there were any other things people did.
     
    ehlokoen, Nov 17, 2007 IP
  4. kemus

    kemus Guest

    Messages:
    487
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    First: Security. Is there ANY way users can interact directly with the script? If so, use a regex command to filter out unexpected results. Don't let someone type
    into your password box, etc.

    Second: Write out the features you want.

    Third: Discard features that are too complex

    Fourth: Order features in logical order.

    Fifth: Get coding.
     
    kemus, Nov 17, 2007 IP
  5. ehlokoen

    ehlokoen Peon

    Messages:
    161
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks kamus :) Short steps, but very powerful.
     
    ehlokoen, Nov 18, 2007 IP
  6. Im The ONE

    Im The ONE Peon

    Messages:
    800
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #6
    1. Make the DB structure with features in mind.
    2. Start coding
    Its simple and easy and you never get confused.
     
    Im The ONE, Nov 18, 2007 IP
  7. Marko

    Marko Peon

    Messages:
    248
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    First UML!
    Then smart and hacker's safe coding..
     
    Marko, Nov 18, 2007 IP
  8. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #8
    writing ideas down on paper, takes a few pages depending on your project. Find a constant way of displaying pages in php, for example I use classes for each category and a function for the page like this

    
    class Members
    {
     private $url,
               $template,
               $ect;
    public function list()
       {
       ?>
       list made here....
       <?php
       }
    public function edit()
       {
       ?>
       Edit whatever here
       <?php
       }
    public function profile()
       {
        ?>
        profile here
        <?php
       } 
    }
    PHP:
    the way I build my script it would show up like this
    index.php?cat=members&view=profile
    or
    index.php?cat=members&view=edit

    ect...

    Than just tweak your code until it works like a charm
     
    clinton, Nov 18, 2007 IP
  9. aRo`

    aRo` Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    iterate over smaller projects, don't spend to much time on coding without launching a part of the site.

    You should already market it somehow.
     
    aRo`, Nov 19, 2007 IP
  10. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #10
    I really don't have much planning involved when working with PHP.

    My PHP work usually consists of connecting other technology together, all the planning has already been done in a sense.
     
    joebert, Nov 19, 2007 IP