INTRODUCTION

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

Server Setup

To run PHP code embedded in your web pages you will need a web server and a PHP preprocessor linked to your web server.

You can set up your own web server or you can upload your pages to an Internet Service Provider (ISP) with these facilities.

PHP runs on the server so you must have access to the server side. Two of the examples require you to change server file permissions.

Windows

You probably can't use 3.x, 95, 98 or ME.

Windows 2000 and XP Professional are easy to set up. You have to activate IIS and install PHP. PHP can be download here. Minimal extra configuration is needed.

Windows XP Home does not include IIS but you can download and install the Apache web server instead. Installing PHP is a bit more complex but the installation readme files are clear enough if you spend the time to read them.

Linux

This site is running on a full installation of Suse Linux 9.2. This comes with the Apache web server, PHP and MySQL all built-in and ready to run. It is a bit of a black art making all the services active. Most other Linux distributions include Apache, PHP, MySQL, FTP and everything else you might need.

http://www.suse.co.uk/uk/index.html

Apache

http://httpd.apache.org/

PHP

http://www.php.net/