Chapter 1

Understanding PHP Basics

IN THIS CHAPTER

check Understanding PHP

check Using PHP in HTML5 programs

check Storing data in PHP programs

check Including PHP code in multiple programs

Welcome to the PHP minibook! If you’ve been following along through the previous minibooks, you’ve seen how to create web page content using HTML5, how to style and position it using CSS3, and how to add some dynamic features to your web pages using JavaScript. This minibook examines the next piece to dynamic web applications — using a server-side programming language to make your web applications even more dynamic. As the title of the book suggests, the server-side programming language that I discuss is PHP, one of the most popular server-side programming languages in use on the Internet today!

Seeing the Benefits of PHP

So far, you’ve already seen that JavaScript is a popular client-side programming language and that it has the ability to change the content and style of a web page dynamically. One question you may be asking is, “Why do I need a server-side programming language, too?” This section examines what your ...

Get PHP, MySQL, & JavaScript All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.