PHP Practices for first time web-programmer
<p>I have this idea for a website that's been floating around my head for quite sometime now and now have finally decided to get to work on it. Due to the nature of the project and my experience I am getting comfortable with the idea of running it as a PHP+MySQL application on an Apache server.</p>

<p>This is my first time doing web programming of any sort(I have a background in sysadmin and mainframe systems coding) and I am pretty unsure of what practices to take into consideration so that I don't find myself undoing/redoing things later in the project. Considering all the flak the language has taken on StackOverflow(which can be seen <a href="http://stackoverflow.com/questions/233030/worst-php-practice-found-in-your-experience">here</a> and <a href="http://stackoverflow.com/questions/309300/defend-php-convince-me-it-isnt-horrible">here</a>) it would be nice to have a set of common mistakes to watch out for for a beginner like me. I did find this <a href="http://stackoverflow.com/questions/694246/how-is-php-done-the-right-way">thread</a> outlining things to avoid in PHP but most of the points made little sense to someone like me who's just setting out in PHP. </p>

<p>Do you have any suggestions, tips or tutorials outlining common gotcha's in the language which might come back later in the project demanding entire rewrites. </p>

<p>For what it's worth I am currently working my way through <a href="http://oreilly.com/catalog/9780596006815/" rel="nofollow">Programming PHP(O'Reilly)</a> and <a href="http://www.manning.com/reiersol/" rel="nofollow">PHP in Action(Manning)</a>.</p>
