PHP for the Web: Visual QuickStart Guide, 5th Edition

This eBook includes the following formats, accessible from your Account page after purchase:

ePub

EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

Adobe Reader

PDF The popular standard, used most often with the free Acrobat® Reader® software.

This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

About

Features

Illustrated with hundreds of screenshots--all updated to reflect recent developments in PHP 7.
• Loaded with tips and techniques gleaned from real-world PHP experience by best-selling author Larry Ullman.
• Step-by-step instructions, clear screenshots, and low price point make this an ideal guide to PHP.

Description

Learn PHP programming the quick and easy way!

Sample Content

Online Sample Chapter

Sample Pages

Download the sample pages (includes Chapter 4 and the Index.)

Table of Contents

Chapter 1 Getting Started with PHP

Basic HTML Syntax

Basic PHP Syntax

Testing Your Script

Sending Text to the Browser

Using the PHP Manual

Sending HTML to the Browser

Adding Comments to Scripts

Basic Debugging Steps

Review and Pursue

Chapter 2 Variables

What Are Variables?

Types of Variables

Understanding Quotation Marks

Review and Pursue

Chapter 3 HTML Forms and PHP

Creating a Simple Form

Choosing a Form Method

Receiving Form Data in PHP

Manually Sending Data to a Page

Review and Pursue

Chapter 4 Using Numbers

Creating the Form

Incrementing and Decrementing a Number

Review and Pursue

Chapter 5 Using Strings

Creating the HTML Form

Encoding and Decoding Strings

Replacing Parts of a String

Review and Pursue

Chapter 6 Control Structures

Creating the HTML Form

The if Conditional

The Switch Conditional

Review and Pursue

Chapter 7 Using Arrays

What Is an Array?

Creating an Array

Adding Items to an Array

Accessing Array Elements

Creating Multidimensional Arrays

Transforming Between Strings and Arrays

Creating an Array from a Form

Review and Pursue

Chapter 8 Creating Web Applications

Using External Files

Working with the Date and Time

Handling HTML Forms with PHP, Revisited

Making Forms Sticky

Manipulating HTTP Headers

Review and Pursue

Chapter 9 Cookies and Sessions

What Are Cookies?

Reading from Cookies

Adding Parameters to a Cookie

Deleting a Cookie

What Are Sessions?

Creating a Session

Accessing Session Variables

Deleting a Session

Review and Pursue

Chapter 10 Creating Functions

Creating and Using Simple Functions

Creating and Calling Functions That Take Arguments

Setting Default Argument Values

Creating and Using Functions That Return a Value

Understanding Variable Scope

Review and Pursue

Chapter 11 Files and Directories

Writing to Files

Reading from Files

Handling File Uploads

Reading Files Incrementally

Review and Pursue

Chapter 12 Intro to Databases

Introduction to SQL

Connecting to MySQL

MySQL Error Handling

Creating a Table

Inserting Data into a Database

Securing Query Data

Retrieving Data from a Database

Deleting Data in a Database

Updating Data in a Database

Review and Pursue

Chapter 13 Putting It All Together

Connecting to the Database

Writing the User-Defined Function

Creating the Template

Creating the Home Page

Review and Pursue

Appendix A Installation and Configuration

Appendix B Resources and Next Steps