This book has been moved to my own domain now: herongyang.com. Please click the following button to open it in a new window:

If your browser does not support popups, please copy this URL to the address field and press the Enter key: http://www.herongyang.com/php

Thank you for your visiting!

-- Herong

Herong's Tutorial Notes on PHP
Version 2.10
Dr. Herong Yang

Table of Contents

About This Book

Installing PHP 5.0.4 on Windows

  • What Is PHP?
  • Downloading PHP 5.0.4 for Windows
  • My First PHP Script - Hello.php
  • Installing PHP with IIS as CGI

PHP Syntax

  • PHP Code Blocks
  • PHP Processing Behavior
  • PHP Comments and Statement Delimiter

Data Types and Variables

  • Data Types
  • Variables
  • Constants

Operations and Expressions

  • Operations
  • Expressions

Flow Control Statements

  • Conditional Statements
  • Loop Statements

Functions

  • User Defined Functions
  • Passing and Returning References

Arrays

  • What Is an Array in PHP?
  • Array Related Built-in Functions

Sending Emails

  • Using Local Windows System as a Mail Server
  • Sending an Email with PHP

HTTP Request Variables

  • Predefined Variables Related to HTTP Request
  • Testing Request Variables - HttpRequestDetails.php
  • Registering HTTP Request Variables as Global Variables

Sessions

  • What is a Session?
  • PHP's Session Support
  • Session Test Scripts - SessionPageN.php
  • Managing Session ID without Cookie
  • Where Is Session Data Stored?

Using MySQL with PHP

  • Configuring PHP with MySQL
  • PHP's MySQL Support
  • MySQL Test - MySqlLoop.php

Directories, Files and Images

  • Directory Functions
  • File System Functions
  • Image Functions
  • ShowPhoto.php - Showing Images in a Directory

SOAP PHP Implementations

  • PHP Implementations of SOAP
  • Checking My PHP Installation on Windows
  • Installing SOAP Library on Windows

PHP SOAP Extension

  • What Is PHP SOAP Extension?
  • GetTemp.php - First Example with SOAP
  • PHP SOAP Extension Functions for Client Applications
  • GetTempDump.php - Dumping Debugging Information
  • Whis Is WSDL?
  • Using SOAP Extension in non-WDSL Mode

PHP SOAP Extension - Server Applications

  • PHP SOAP Extension Functions for Server Applications
  • HelloServer.php - First SOAP Server Application
  • HelloServer12.php - SOAP 1.2 Server Application
  • HelloServerWsdl.php - SOAP 1.2 Server Application in WSDL Mode

References

Key Words: array, book, CGI, CLI, cookie, database, directory, example, file, free, function, HTTP, IIS, image, language, loop, mail, MySQL, online, PHP, request, session, SMTP, SOAP, SOAP Extension, SQL, tutorial, WSDL.

1