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

Table of Contents
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. 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. Gettext
XXIX. GMP functions
XXX. HTTP functions
XXXI. Hyperwave functions
XXXII. ICAP Functions
XXXIII. iconv functions
XXXIV. Image functions
XXXV. IMAP, POP3 and NNTP functions
XXXVI. Informix functions
XXXVII. InterBase functions
XXXVIII. Ingres II functions
XXXIX. IRC Gateway Functions
XL. Java
XLI. LDAP functions
XLII. Mail functions
XLIII. Mathematical Functions
XLIV. Multi-Byte String Functions
XLV. MCAL functions
XLVI. Mcrypt Encryption Functions
XLVII. Mhash Functions
XLVIII. Microsoft SQL Server functions
XLIX. Ming functions for Flash
L. Miscellaneous functions
LI. mnoGoSearch Functions
LII. mSQL functions
LIII. MySQL functions
LIV. Network Functions
LV. Unified ODBC functions
LVI. Oracle 8 functions
LVII. OpenSSL functions
LVIII. Oracle functions
LIX. Ovrimos SQL functions
LX. Output Control Functions
LXI. PDF functions
LXII. Verisign Payflow Pro functions
LXIII. PHP options & information
LXIV. POSIX functions
LXV. PostgreSQL functions
LXVI. Program Execution functions
LXVII. Printer functions
LXVIII. Pspell Functions
LXIX. GNU Readline
LXX. GNU Recode functions
LXXI. Regular Expression Functions (Perl-Compatible)
LXXII. Regular Expression Functions (POSIX Extended)
LXXIII. Satellite CORBA client extension
LXXIV. Semaphore and Shared Memory Functions
LXXV. SESAM database functions
LXXVI. Session handling functions
LXXVII. Shared Memory Functions
LXXVIII. Shockwave Flash functions
LXXIX. SNMP functions
LXXX. Socket functions
LXXXI. String functions
LXXXII. Sybase functions
LXXXIII. URL Functions
LXXXIV. Variable Functions
LXXXV. WDDX functions
LXXXVI. XML parser functions
LXXXVII. XSLT functions
LXXXVIII. YAZ functions
LXXXIX. YP/NIS Functions
XC. Zip File Functions (Read Only Access)
XCI. Zlib Compression Functions
V. PEAR: the PHP Extension and Application Repository
24. About PEAR
25. PEAR Coding Standards
XCII. PEAR Reference Manual
VI. FAQ: Frequently Asked Questions
XCIII. General Information
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