INTRODUCTION

Site Home
LAMP Home
PHP Web Home
Server Setup
nav.php
code.php
Download Tutorial

LESSONS

01 Hello World!
02 Text I/O
03 Arithmetic
04 Date and Time
05 Image Creation
06 Pie Chart
07 Array and Records
08 Delete a Record
09 Shopping
10 Shop Checkout
11 MM Bingo

MORE PHP

PHP Console Apps
PHP and MySQL

PHP on Web Pages

This tutorial assumes you have some knowledge of HTML coding including simple text formatting, tables and forms. You should also have some familiarity with PHP. For example you might have worked through this tutorial.

Setting up your server - This entire tutorial can be downloaded for use on your local PHP enabled web server.

Lesson

Example

Homework

One

Hello World!

  1. Write your own version of the "Hello World!" program. It should display several pieces of text and should include formatting tags such as headings and paragraphs.

Two

Text I/O

  1. Make a form with text input fields where you can enter a full name and address. When you submit the form, the name and address should be displayed.

Three

Arithmetic

  1. Upgrade the calculator example to multiply and divide. Make sure it traps the divide by zero error.

Four

Date and Time

  1. Create a web page that greets you with "Good Morning", "Good Afternoon" Etc. depending on the time of day.

Five

Graphics

  1. Create your own simple graphic.

Six

Pie Chart

  1. Create an interactive bar chart.

Seven

Array & Records

  1. Upgrade this example to manage a phone number in addition to the name and date fields.

Eight

Delete Record

  1. For high fliers only: Upgrade this example to delete many records in one step. Use checkboxes instead of radio buttons.

Nine

Shopping

  1. Add two more products to the example shop.