PHP Manual
Stig Sæther Bakken
Alexander Aulbach
Egon Schmid
Jim Winstead
Lars Torben Wilson
Rasmus Lerdorf
Zeev Suraski
Andrei Zmievski
Jouni Ahto
Edited by
Stig Sæther Bakken
Egon Schmid
Copyright
© 1997, 1998, 1999, 2000, 2001 by the PHP Documentation Group
Table of Contents
Preface
About this Manual
I.
Getting Started
1.
Introduction
2.
Installation
3.
Configuration
4.
Security
II.
Language Reference
5.
Basic syntax
6.
Types
7.
Variables
8.
Constants
9.
Expressions
10.
Operators
11.
Control Structures
12.
Functions
13.
Classes and Objects
14.
References Explained
III.
Features
15.
Error Handling
16.
Creating and manipulating images
17.
HTTP authentication with PHP
18.
Cookies
19.
Handling file uploads
20.
Using remote files
21.
Connection handling
22.
Persistent Database Connections
23.
Safe mode
IV.
Function Reference
I.
Apache-specific Functions
II.
Array Functions
III.
Aspell functions
IV.
BCMath Arbitrary Precision Mathematics Functions
V.
Bzip2 Compression Functions
VI.
Calendar functions
VII.
CCVS API Functions
VIII.
COM support functions for Windows
IX.
Class/Object Functions
X.
ClibPDF functions
XI.
CURL, Client URL Library Functions
XII.
Cybercash payment functions
XIII.
Crédit Mutuel CyberMUT functions
XIV.
Character type functions
XV.
Database (dbm-style) abstraction layer functions
XVI.
Date and Time functions
XVII.
dBase functions
XVIII.
DBM Functions
XIX.
dbx functions
XX.
Directory functions
XXI.
DOM XML functions
XXII.
Error Handling and Logging Functions
XXIII.
FrontBase functions
XXIV.
filePro functions
XXV.
Filesystem functions
XXVI.
Forms Data Format functions
XXVII.
FTP functions
XXVIII.
Function Handling functions
XXIX.
Gettext
XXX.
GMP functions
XXXI.
HTTP functions
XXXII.
Hyperwave functions
XXXIII.
ICAP Functions
XXXIV.
iconv functions
XXXV.
Image functions
XXXVI.
IMAP, POP3 and NNTP functions
XXXVII.
Informix functions
XXXVIII.
InterBase functions
XXXIX.
Ingres II functions
XL.
IRC Gateway Functions
XLI.
Java
XLII.
LDAP functions
XLIII.
Mail functions
XLIV.
Mathematical Functions
XLV.
Multi-Byte String Functions
XLVI.
MCAL functions
XLVII.
Mcrypt Encryption Functions
XLVIII.
Mhash Functions
XLIX.
Microsoft SQL Server functions
L.
Ming functions for Flash
LI.
Miscellaneous functions
LII.
mnoGoSearch Functions
LIII.
mSQL functions
LIV.
MySQL functions
LV.
Network Functions
LVI.
Unified ODBC functions
LVII.
Oracle 8 functions
LVIII.
OpenSSL functions
LIX.
Oracle functions
LX.
Ovrimos SQL functions
LXI.
Output Control Functions
LXII.
PDF functions
LXIII.
Verisign Payflow Pro functions
LXIV.
PHP options & information
LXV.
POSIX functions
LXVI.
PostgreSQL functions
LXVII.
Program Execution functions
LXVIII.
Printer functions
LXIX.
Pspell Functions
LXX.
GNU Readline
LXXI.
GNU Recode functions
LXXII.
Regular Expression Functions (Perl-Compatible)
LXXIII.
Regular Expression Functions (POSIX Extended)
LXXIV.
Satellite CORBA client extension
LXXV.
Semaphore and Shared Memory Functions
LXXVI.
SESAM database functions
LXXVII.
Session handling functions
LXXVIII.
Shared Memory Functions
LXXIX.
Shockwave Flash functions
LXXX.
SNMP functions
LXXXI.
Socket functions
LXXXII.
String functions
LXXXIII.
Sybase functions
LXXXIV.
URL Functions
LXXXV.
Variable Functions
LXXXVI.
WDDX functions
LXXXVII.
XML parser functions
LXXXVIII.
XSLT functions
LXXXIX.
YAZ functions
XC.
YP/NIS Functions
XCI.
Zip File Functions (Read Only Access)
XCII.
Zlib Compression Functions
V.
PEAR: the PHP Extension and Application Repository
24.
About PEAR
25.
PEAR Coding Standards
XCIII.
PEAR Reference Manual
VI.
FAQ: Frequently Asked Questions
26.
General Information
27.
Mailing lists
28.
Obtaining PHP
29.
Connecting to databases
30.
Installation
31.
Build Problems
32.
Using PHP
33.
PHP and HTML
34.
PHP and other languages
35.
Common Problems
36.
Migrating from PHP 2 to PHP 3
37.
Migrating from PHP 3 to PHP 4
38.
Miscellaneous Questions
VII.
Appendixes
A.
Migrating from older versions of PHP
B.
Migrating from PHP 3.0 to PHP 4.0
C.
PHP development
D.
The PHP Debugger
E.
PHP reserved words
F.
PHP Resource Types
Next
Preface