1 Introduction to PHP

To use an old chestnut, every journey starts with one small step, and the first step in developing dynamic Web applications with PHP and MySQL is to learn the fundamentals of the scripting language itself.

Although this book focuses on using MySQL and PHP in combination, you’ll do a vast majority of your legwork using PHP alone. In this and the following chapter, you’ll learn its basics, from syntax to variables, operators, and language constructs (conditionals, loops, and whatnot). At the same time you are picking up these fundamentals, you’ll also begin developing usable code that you’ll integrate into larger applications later in the book.

This introductory chapter will cruise through most of the basics of the ...

Get PHP 6 and MySQL 5 for Dynamic Web Sites: 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.