|This chapter covers|
PHP has been used to develop dynamic websites for over 10 years. Initially, all PHP websites were written as PHP code interspersed within HTML on the same page. This worked very well, as there is immediate feedback, and for simple scripts this was what was needed. PHP grew in popularity through versions 3 and 4, so it was inevitable that larger and larger applications would be written in PHP. It quickly became obvious that intermixing PHP code and HTML was not a long-term solution for large websites.
The problems are obvious in hindsight: maintainability and extensibility. While PHP intermixed ...