PHP Manual

Stig Sæther Bakken
Alexander Aulbach
Egon Schmid
Jim Winstead
Lars Torben Wilson
Rasmus Lerdorf
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 [deprecated]
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. DB++ Functions
XXI. Directory functions
XXII. DOM XML functions
XXIII. Error Handling and Logging Functions
XXIV. FrontBase Functions
XXV. filePro functions
XXVI. Filesystem functions
XXVII. Forms Data Format functions
XXVIII. FTP functions
XXIX. Function Handling functions
XXX. Gettext
XXXI. GMP functions
XXXII. HTTP functions
XXXIII. Hyperwave functions
XXXIV. ICAP Functions
XXXV. iconv functions
XXXVI. Image functions
XXXVII. IMAP, POP3 and NNTP functions
XXXVIII. Informix functions
XXXIX. InterBase functions
XL. Ingres II functions
XLI. IRC Gateway Functions
XLII. Java
XLIII. LDAP functions
XLIV. Mail functions
XLV. Mathematical Functions
XLVI. Multi-Byte String Functions
XLVII. MCAL functions
XLVIII. Mcrypt Encryption Functions
XLIX. Mhash Functions
L. Microsoft SQL Server functions
LI. Ming functions for Flash
LII. Miscellaneous functions
LIII. mnoGoSearch Functions
LIV. mSQL functions
LV. MySQL Functions
LVI. Network Functions
LVII. Unified ODBC functions
LVIII. Oracle 8 functions
LIX. OpenSSL functions
LX. Oracle functions
LXI. Ovrimos SQL functions
LXII. Output Control Functions
LXIII. Object property and method call overloading
LXIV. PDF functions
LXV. Verisign Payflow Pro functions
LXVI. PHP options & information
LXVII. POSIX functions
LXVIII. PostgreSQL functions
LXIX. Program Execution functions
LXX. Printer functions
LXXI. Pspell Functions
LXXII. GNU Readline
LXXIII. GNU Recode functions
LXXIV. Regular Expression Functions (Perl-Compatible)
LXXV. Regular Expression Functions (POSIX Extended)
LXXVI. Satellite CORBA client extension
LXXVII. Semaphore and Shared Memory Functions
LXXVIII. SESAM database functions
LXXIX. Session handling functions
LXXX. Shared Memory Functions
LXXXI. Shockwave Flash functions
LXXXII. SNMP functions
LXXXIII. Socket functions
LXXXIV. String functions
LXXXV. Sybase functions
LXXXVI. URL Functions
LXXXVII. Variable Functions
LXXXIX. XML parser functions
XC. XSLT functions
XCI. YAZ functions
XCII. YP/NIS Functions
XCIII. Zip File Functions (Read Only Access)
XCIV. Zlib Compression Functions
V. PEAR: the PHP Extension and Application Repository
24. About PEAR
25. PEAR Coding Standards
XCV. PEAR Reference Manual
VI. FAQ: Frequently Asked Questions
26. General Information
27. Mailing lists
28. Obtaining PHP
29. Database issues
30. Installation
31. Build Problems
32. Using PHP
33. PHP and HTML
34. PHP and COM
35. PHP and other languages
36. Migrating from PHP 2 to PHP 3
37. Migrating from PHP 3 to PHP 4
38. Miscellaneous Questions
VII. Appendixes
A. Migrating from PHP/FI 2.0 to PHP 3.0
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
G. Aliases list
H. Using PHP from the command line