13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

25<br />

Using <strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong> for<br />

Large Projects<br />

IN THE EARLIER PARTS OF THIS BOOK, WE DISCUSSED various components of <strong>and</strong> uses for<br />

<strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong>. Although we tried to make all the examples interesting <strong>and</strong> relevant,<br />

they were reasonably simple, consisting of one or two scripts of up to 100 or so lines of<br />

code.<br />

When you are building real-world web applications, writing code is rarely this simple.<br />

A few years ago, an “interactive” website had form mail <strong>and</strong> that was it. However, these<br />

days, websites have become web applications—that is, regular pieces of software delivered<br />

over the <strong>Web</strong>.This change in focus means a change in scale.<strong>Web</strong>sites grow from a h<strong>and</strong>ful<br />

of scripts to thous<strong>and</strong>s <strong>and</strong> thous<strong>and</strong>s of lines of code. Projects of this size require<br />

planning <strong>and</strong> management just like any other software development.<br />

Before we look at the projects in this part of the book, let’s look at some of the techniques<br />

that can be used to manage sizable web projects.This is an emerging art, <strong>and</strong> getting<br />

it right is obviously difficult:You can see this by observation in the marketplace.<br />

Key topics covered in this chapter include<br />

n Applying software engineering to web development<br />

n Planning <strong>and</strong> running a web application project<br />

n Reusing code<br />

n Writing maintainable code<br />

n Implementing version control<br />

n Choosing a development environment<br />

n Documenting your project<br />

n Prototyping<br />

n Separating logic, content, <strong>and</strong> presentation: <strong>PHP</strong>, HTML, <strong>and</strong> CSS<br />

n Optimizing code

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!