Even if you only pepper your site with snippets of PHP for its sheer utility, you still need to know the basics, which includes variables, arrays, the
date() function, and includes.
Goals: Create an
include() that adds the current date to a web page using concatenation; make and use a simple variable, array, and a basic function.
Total time for practice: 4 hours
Prerequisites: Introduction to PHP
I often compare PHP to the scullery maids living below stairs in an upper-class Victorian household: rarely given the acknowledgement they deserve, but indispensable to order and productivity.
PHP is the server-side technology you’re most likely to encounter in web development today, although there are many other alternatives. PHP works to assemble pages, validate form inputs, and a thousand other tasks, delivering web content for consumption.
Like other web tech, the role of PHP in your sites will change as your workflow develops. At the very least, you should understand how PHP is used to generate page templates with
include(), together with basic form handling, variables, and file I/O. This PHP reading list is designed to fulfill those requirements.