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.
Yeah, I've got that tutorial from there saved on my HD. Just wanted to know if there were any other things people did.
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.
1. Make the DB structure with features in mind. 2. Start coding Its simple and easy and you never get confused.
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
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.
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.