Part 1: PHP and MySQL Basics. In the first three chapters, you’ll install PHP, get it running on your computer, write your first few PHP programs, and learn to do a few basic things like collect user information via a web form and work with text. You’ll also install MySQL and get thoroughly acquainted with the structure of a database.