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
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.
Character type functions
XIV.
Database (dbm-style) abstraction layer functions
XV.
Date and Time functions
XVI.
dBase functions
XVII.
DBM Functions
XVIII.
dbx functions
XIX.
Directory functions
XX.
DOM XML functions
XXI.
Error Handling and Logging Functions
XXII.
FrontBase functions
XXIII.
filePro functions
XXIV.
Filesystem functions
XXV.
Forms Data Format functions
XXVI.
FTP functions
XXVII.
Function Handling functions
XXVIII.
GNU Gettext
XXIX.
GMP functions
XXX.
HTTP functions
XXXI.
Hyperwave functions
XXXII.
ICAP Functions
XXXIII.
Image functions
XXXIV.
IMAP, POP3 and NNTP functions
XXXV.
Informix functions
XXXVI.
InterBase functions
XXXVII.
Ingres II functions
XXXVIII.
IRC Gateway Functions
XXXIX.
Java
XL.
LDAP functions
XLI.
Mail functions
XLII.
Mathematical Functions
XLIII.
Multi-Byte String Functions
XLIV.
MCAL functions
XLV.
Mcrypt Encryption Functions
XLVI.
Mhash Functions
XLVII.
Microsoft SQL Server functions
XLVIII.
Ming functions for Flash
XLIX.
Miscellaneous functions
L.
mnoGoSearch Functions
LI.
mSQL functions
LII.
MySQL functions
LIII.
Network Functions
LIV.
Unified ODBC functions
LV.
Oracle 8 functions
LVI.
OpenSSL functions
LVII.
Oracle functions
LVIII.
Ovrimos SQL functions
LIX.
Output Control Functions
LX.
PDF functions
LXI.
Verisign Payflow Pro functions
LXII.
PHP options & information
LXIII.
POSIX functions
LXIV.
PostgreSQL functions
LXV.
Program Execution functions
LXVI.
Printer functions
LXVII.
Pspell Functions
LXVIII.
GNU Readline
LXIX.
GNU Recode functions
LXX.
Regular Expression Functions (Perl-Compatible)
LXXI.
Regular Expression Functions (POSIX Extended)
LXXII.
Satellite CORBA client extension
LXXIII.
Semaphore and Shared Memory Functions
LXXIV.
SESAM database functions
LXXV.
Session handling functions
LXXVI.
Shared Memory Functions
LXXVII.
Shockwave Flash functions
LXXVIII.
SNMP functions
LXXIX.
Socket functions
LXXX.
String functions
LXXXI.
Sybase functions
LXXXII.
URL Functions
LXXXIII.
Variable Functions
LXXXIV.
WDDX functions
LXXXV.
XML parser functions
LXXXVI.
XSLT functions
LXXXVII.
YAZ functions
LXXXVIII.
YP/NIS Functions
LXXXIX.
Zip File Functions (Read Only Access)
XC.
Zlib Compression Functions
V.
PEAR: the PHP Extension and Application Repository
23.
About PEAR
24.
PEAR Coding Standards
XCI.
PEAR Reference Manual
VI.
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's resource types
Next
Preface