Changes

Creating a Simple PHP Script

19 bytes added, 13:08, 24 May 2007
no edit summary
In the previous chapter we looked at [[An Overview of PHP|how PHP works]]. No technology book would be complete without including the obligatory simple example, and PHP Essentials is no exception to this rule.
In this chapter we will look at constructing the most basic of PHP examples, and in so doing we will take two approaches to creating PHP powered web content. Firstly we will look at embedding PHP into an HTML page. Secondly, we will look at a reverse example whereby we embed the HTML into the PHP. Both are perfectly valid approaches to using PHP.