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
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. filePro functions
XXIII. Filesystem functions
XXIV. Forms Data Format functions
XXV. FTP functions
XXVI. Function Handling functions
XXVII. GNU Gettext
XXVIII. GMP functions
XXIX. HTTP functions
XXX. Hyperwave functions
XXXI. ICAP Functions
XXXII. Image functions
XXXIII. IMAP, POP3 and NNTP functions
XXXIV. Informix functions
XXXV. InterBase functions
XXXVI. Ingres II functions
XXXVII. LDAP functions
XXXVIII. Mail functions
XXXIX. Mathematical Functions
XL. MCAL functions
XLI. Mcrypt Encryption Functions
XLII. Mhash Functions
XLIII. Microsoft SQL Server functions
XLIV. Ming functions for Flash
XLV. Miscellaneous functions
XLVI. mnoGoSearch Functions
XLVII. mSQL functions
XLVIII. MySQL functions
XLIX. Network Functions
L. Unified ODBC functions
LI. Oracle 8 functions
LII. OpenSSL functions
LIII. Oracle functions
LIV. Ovrimos SQL functions
LV. Output Control Functions
LVI. PDF functions
LVII. Verisign Payflow Pro functions
LVIII. PHP options & information
LIX. POSIX functions
LX. PostgreSQL functions
LXI. Program Execution functions
LXII. Pspell Functions
LXIII. GNU Readline
LXIV. GNU Recode functions
LXV. Regular Expression Functions (Perl-Compatible)
LXVI. Regular Expression Functions (POSIX Extended)
LXVII. Satellite CORBA client extension
LXVIII. Semaphore and Shared Memory Functions
LXIX. SESAM database functions
LXX. Session handling functions
LXXI. Shared Memory Functions
LXXII. Shockwave Flash functions
LXXIII. SNMP functions
LXXIV. Socket functions
LXXV. String functions
LXXVI. Sybase functions
LXXVII. URL Functions
LXXVIII. Variable Functions
LXXIX. WDDX functions
LXXX. XML parser functions
LXXXI. XSLT functions
LXXXII. YAZ functions
LXXXIII. YP/NIS Functions
LXXXIV. Zlib Compression Functions
V. PEAR: the PHP Extension and Application Repository
23. About PEAR
24. PEAR Coding Standards
LXXXV. 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