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. 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. LDAP functions
XXXIX. Mail functions
XL. Mathematical Functions
XLI. MCAL functions
XLII. Mcrypt Encryption Functions
XLIII. Mhash Functions
XLIV. Microsoft SQL Server functions
XLV. Ming functions for Flash
XLVI. Miscellaneous functions
XLVII. mnoGoSearch Functions
XLVIII. mSQL functions
XLIX. MySQL functions
L. Network Functions
LI. Unified ODBC functions
LII. Oracle 8 functions
LIII. OpenSSL functions
LIV. Oracle functions
LV. Ovrimos SQL functions
LVI. Output Control Functions
LVII. PDF functions
LVIII. Verisign Payflow Pro functions
LIX. PHP options & information
LX. POSIX functions
LXI. PostgreSQL functions
LXII. Program Execution functions
LXIII. Pspell Functions
LXIV. GNU Readline
LXV. GNU Recode functions
LXVI. Regular Expression Functions (Perl-Compatible)
LXVII. Regular Expression Functions (POSIX Extended)
LXVIII. Satellite CORBA client extension
LXIX. Semaphore and Shared Memory Functions
LXX. SESAM database functions
LXXI. Session handling functions
LXXII. Shared Memory Functions
LXXIII. Shockwave Flash functions
LXXIV. SNMP functions
LXXV. Socket functions
LXXVI. String functions
LXXVII. Sybase functions
LXXVIII. URL Functions
LXXIX. Variable Functions
LXXX. WDDX functions
LXXXI. XML parser functions
LXXXII. XSLT functions
LXXXIII. YAZ functions
LXXXIV. YP/NIS Functions
LXXXV. Zlib Compression Functions
V. PEAR: the PHP Extension and Application Repository
23. About PEAR
24. PEAR Coding Standards
LXXXVI. 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