PHP Tutorials - Herong's Tutorial Notes
Version 2.21
Dr. Herong Yang
Copyright © 2003 - 2006 by Dr. Herong Yang. All rights reserved.
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
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 Cookies
- What is a Cookie?
- Sending and Receiving Cookies
- Output Control Functions
- Persistent Cookies
- Other Cookie Properties
Controlling HTTP Response Header Lines
- HTTP Response Syntax
- HTTP Response Header Lines
- Controlling Header Lines
- Viewing Header Lines
- Header Lines of Static Files
- Controlling Header Lines - Example Scripts
- Forcing the Browser to Redirect
- Generating Non-HTML Entity Body
- Sending Files for Downloading
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
Handling Non ASCII Characters - Overview
- What Is Localization / Internationalization?
- Managing Characters in Web Based Applications
- Character Traveling Paths
- ASCII Characters in PHP Pages
Non ASCII Characters in HTML documents
- Basic Rules
- French Characters in HTML Documents - UTF-8 Encoding
- French Characters in HTML Documents - ISO-8859-1 Encoding
- Chinese Characters in HTML Documents - UTF-8 Encoding
- Chinese Characters in HTML Documents - GB22312 Encoding
- Characters of Multiple Languages in HTML Documents
Non ASCII Characters as String Literals
- Basic Rules
- French Characters in String Literals - UTF-8 Encoding
- French Characters in String Literals - ISO-8859-1 Encoding
- Chinese Characters in String Literals - UTF-8 Encoding
- Chinese Characters in String Literals - GB2312 Encoding
- Characters of Multiple Languages in String Literals
Receiving Non ASCII Characters from Input Forms
- Basic Rules
- Receiving Non ASCII Characters with GET Method
- Receiving Non ASCII Characters with POST Method
- Receiving Non ASCII Characters in UTF-8
- Decoding HTML Entities
Managing Non ASCII Character Strings
- "mbstring" Extension
- "mbstring" Functions
- "mbstring" Basic Tests
- HTTP Input and Output Encoding
Non ASCII Characters with MySQL
- Storing Non ASCII Characters in Database
- Transmitting Non ASCII Characters to the Server
- MySqlUnicode.php - UTF-8 Sample Script
References
Key Words:
array, CGI, CLI, cookie, database, directory, download, file, GB2312, header lines, HTTP, IIS,
image, language, localization, mail, MySQL, non ASCII, output buffer, PHP, redirect, request, session,
SMTP, SOAP, SOAP Extension, SQL, Unicode, WSDL.
|