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
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
24. Using PHP from the command line
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. Crack functions
XII. CURL, Client URL Library Functions
XIII. Cybercash payment functions
XIV. Crédit Mutuel CyberMUT functions
XV. Cyrus IMAP administration functions
XVI. Character type functions
XVII. Database (dbm-style) abstraction layer functions
XVIII. Date and Time functions
XIX. dBase functions
XX. DBM Functions
XXI. dbx functions
XXII. DB++ Functions
XXIII. Direct IO functions
XXIV. Directory functions
XXV. DOM XML functions
XXVI. .NET functions
XXVII. Error Handling and Logging Functions
XXVIII. FrontBase Functions
XXIX. filePro functions
XXX. Filesystem functions
XXXI. Forms Data Format functions
XXXII. FriBiDi functions
XXXIII. FTP functions
XXXIV. Function Handling functions
XXXV. Gettext
XXXVI. GMP functions
XXXVII. HTTP functions
XXXVIII. Hyperwave functions
XXXIX. Hyperwave API functions
XL. ICAP Functions [deprecated]
XLI. iconv functions
XLII. Image functions
XLIII. IMAP, POP3 and NNTP functions
XLIV. Informix functions
XLV. InterBase functions
XLVI. Ingres II functions
XLVII. IRC Gateway Functions
XLIX. LDAP functions
L. Mail functions
LI. mailparse functions
LII. Mathematical Functions
LIII. Multi-Byte String Functions
LIV. MCAL functions
LV. Mcrypt Encryption Functions
LVI. Mhash Functions
LVII. Microsoft SQL Server functions
LVIII. Ming functions for Flash
LIX. Miscellaneous functions
LX. mnoGoSearch Functions
LXI. mSQL functions
LXII. MySQL Functions
LXIII. Mohawk Software session handler functions
LXIV. muscat functions
LXV. Network Functions
LXVI. Ncurses terminal screen control functions
LXVII. Lotus Notes functions
LXVIII. Unified ODBC functions
LXIX. Oracle 8 functions
LXX. OpenSSL functions
LXXI. Oracle functions
LXXII. Ovrimos SQL functions
LXXIII. Output Control Functions
LXXIV. Object property and method call overloading
LXXV. PDF functions
LXXVI. Verisign Payflow Pro functions
LXXVII. PHP Options&Information
LXXVIII. POSIX functions
LXXIX. PostgreSQL functions
LXXX. Process Control Functions
LXXXI. Program Execution functions
LXXXII. Printer functions
LXXXIII. Pspell Functions
LXXXIV. GNU Readline
LXXXV. GNU Recode functions
LXXXVI. Regular Expression Functions (Perl-Compatible)
LXXXVII. qtdom functions
LXXXVIII. Regular Expression Functions (POSIX Extended)
LXXXIX. Semaphore, Shared Memory and IPC Functions
XC. SESAM database functions
XCI. Session handling functions
XCII. Shared Memory Functions
XCIII. Shockwave Flash functions
XCIV. SNMP functions
XCV. Socket functions
XCVI. String functions
XCVII. Sybase functions
XCVIII. URL Functions
XCIX. Variable Functions
C. vpopmail functions
CI. W32api functions
CII. WDDX Functions
CIII. XML parser functions
CIV. XMLRPC functions
CV. XSLT functions
CVI. YAZ functions
CVII. YP/NIS Functions
CVIII. Zip File Functions (Read Only Access)
CIX. Zlib Compression Functions
V. Extending PHP 4.0
25. Overview
26. Extension Possibilities
27. Source Layout
28. PHP's Automatic Build System
29. Creating Extensions
30. Using Extensions
31. Troubleshooting
32. Source Discussion
33. Accepting Arguments
34. Creating Variables
35. Duplicating Variable Contents: The Copy Constructor
36. Returning Values
37. Printing Information
38. Startup and Shutdown Functions
39. Calling User Functions
40. Initialization File Support
41. Where to Go from Here
42. Reference: Some Configuration Macros
43. API Macros
VI. FAQ: Frequently Asked Questions
44. General Information
45. Mailing lists
46. Obtaining PHP
47. Database issues
48. Installation
49. Build Problems
50. Using PHP
51. PHP and HTML
52. PHP and COM
53. PHP and other languages
54. Migrating from PHP 2 to PHP 3
55. Migrating from PHP 3 to PHP 4
56. Miscellaneous Questions
VII. Appendixes
A. History of PHP and related projects
B. Migrating from PHP 3 to PHP 4
C. Migrating from PHP/FI 2 to PHP 3
D. Debugging PHP
E. Extending PHP
F. List of Function Aliases
G. List of Reserved Words
H. List of Resource Types
I. List of Parser Tokens
J. About the manual
K. missing stuff