Site Structure

Much like your code structure and documentation (covered in Chapter 1, Advanced PHP Programming), another overarching issue when developing larger Web applications is that of site structure: how the files are organ ized and stored on the server. Proper site structure is intended to improve security and administration of a site, as well as promote scalability, portability, and ease of modifications.

While site structure does not qualify as a mission-critical issue, I've seen “professional” Web developers throw everything into one folder—HTML, images, and all—resulting in a directory that contained more than 600 items! I can't imagine how frustrating it would be to manage such a project. Developing and following an organization scheme ...

Get PHP Advanced for the World Wide Web: Visual QuickPro Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.