PHP Manual

Mehdi Achour
Friedhelm Betz
Antony Dovgal
Nuno Lopes
Philip Olson
Georg Richter
Damien Seguy
Jakub Vrana
And several others

Edited by

Gabor Hojtsy


Table of Contents
Authors and Contributors
I. Getting Started
1. Introduction
2. A simple tutorial
II. Installation and Configuration
3. General Installation Considerations
4. Installation on Unix systems
5. Installation on Mac OS X
6. Installation on Windows systems
7. Installation of PECL extensions
8. Problems?
9. Runtime Configuration
III. Language Reference
10. Basic syntax
11. Types
12. Variables
13. Constants
14. Expressions
15. Operators
16. Control Structures
17. Functions
18. Classes and Objects (PHP 4)
19. Classes and Objects (PHP 5)
20. Exceptions
21. References Explained
IV. Security
22. Introduction
23. General considerations
24. Installed as CGI binary
25. Installed as an Apache module
26. Filesystem Security
27. Database Security
28. Error Reporting
29. Using Register Globals
30. User Submitted Data
31. Magic Quotes
32. Hiding PHP
33. Keeping Current
V. Features
34. HTTP authentication with PHP
35. Cookies
36. Sessions
37. Dealing with XForms
38. Handling file uploads
39. Using remote files
40. Connection handling
41. Persistent Database Connections
42. Safe Mode
43. Using PHP from the command line
VI. Function Reference
I. Apache-specific Functions
II. Advanced PHP debugger
III. Array Functions
IV. Aspell functions [deprecated]
V. BCMath Arbitrary Precision Mathematics Functions
VI. PHP bytecode Compiler
VII. Bzip2 Compression Functions
VIII. Calendar Functions
IX. CCVS API Functions [deprecated]
X. Classkit Functions
XI. Class/Object Functions
XII. COM and .Net (Windows)
XIII. ClibPDF Functions
XIV. Crack Functions
XV. Character Type Functions
XVI. CURL, Client URL Library Functions
XVII. Cybercash Payment Functions
XVIII. Cyrus IMAP administration Functions
XIX. Date and Time Functions
XX. Database (dbm-style) Abstraction Layer Functions
XXI. dBase Functions
XXII. DBM Functions [deprecated]
XXIII. DB++ Functions
XXIV. dbx Functions
XXV. Direct IO Functions
XXVI. Directory Functions
XXVII. DOM Functions
XXIX. .NET Functions
XXX. Error Handling and Logging Functions
XXXI. Program Execution Functions
XXXII. Exif Functions
XXXIII. File Alteration Monitor Functions
XXXIV. FrontBase Functions
XXXV. Forms Data Format Functions
XXXVI. filePro Functions
XXXVII. Filesystem Functions
XXXVIII. FriBiDi Functions
XXXIX. FTP Functions
XL. Function Handling Functions
XLI. Gettext
XLII. GMP Functions
XLIII. HTTP Functions
XLIV. Hyperwave Functions
XLV. Hyperwave API Functions
XLVI. Firebird/InterBase Functions
XLVII. IBM DB2, Cloudscape and Apache Derby Functions
XLVIII. ICAP Functions [deprecated]
XLIX. iconv Functions
L. ID3 Functions
LI. Informix Functions
LII. IIS Administration Functions
LIII. Image Functions
LIV. IMAP, POP3 and NNTP Functions
LV. PHP Options&Information
LVI. Ingres II Functions
LVII. IRC Gateway Functions
LVIII. PHP / Java Integration
LIX. LDAP Functions
LX. libxml Functions
LXI. LZF Functions
LXII. Mail Functions
LXIII. mailparse Functions
LXIV. Mathematical Functions
LXV. MaxDB PHP Extension
LXVI. Multibyte String Functions
LXVII. MCAL Functions
LXVIII. Mcrypt Encryption Functions
LXIX. MCVE Payment Functions
LXX. Memcache Functions
LXXI. Mhash Functions
LXXII. Mimetype Functions
LXXIII. Ming functions for Flash
LXXIV. Miscellaneous Functions
LXXV. mnoGoSearch Functions
LXXVI. Mohawk Software Session Handler Functions
LXXVII. mSQL Functions
LXXVIII. Microsoft SQL Server Functions
LXXIX. muscat Functions
LXXX. MySQL Functions
LXXXI. Improved MySQL Extension
LXXXII. Ncurses Terminal Screen Control Functions
LXXXIII. Network Functions
LXXXIV. YP/NIS Functions
LXXXV. Lotus Notes Functions
LXXXVI. NSAPI-specific Functions
LXXXVII. Object Aggregation/Composition Functions
LXXXVIII. Oracle 8 functions
LXXXIX. OpenAL Audio Bindings
XC. OpenSSL Functions
XCI. Oracle Functions
XCII. Output Control Functions
XCIII. Object property and method call overloading
XCIV. Ovrimos SQL Functions
XCV. Parsekit Functions
XCVI. Process Control Functions
XCVII. Regular Expression Functions (Perl-Compatible)
XCVIII. PDF functions
XCIX. PDO Functions
C. Verisign Payflow Pro Functions
CI. PostgreSQL Functions
CII. POSIX Functions
CIII. Printer Functions
CIV. Pspell Functions
CV. qtdom Functions
CVI. Rar Functions
CVII. GNU Readline
CVIII. GNU Recode Functions
CIX. Regular Expression Functions (POSIX Extended)
CX. runkit Functions
CXI. Semaphore, Shared Memory and IPC Functions
CXII. SESAM Database Functions
CXIII. Session Handling Functions
CXIV. Shared Memory Functions
CXV. SimpleXML functions
CXVI. SNMP Functions
CXVII. SOAP Functions
CXVIII. Socket Functions
CXIX. Standard PHP Library (SPL) Functions
CXX. SQLite Functions
CXXI. Secure Shell2 Functions
CXXII. Stream Functions
CXXIII. String Functions
CXXIV. Shockwave Flash Functions
CXXV. Sybase Functions
CXXVI. TCP Wrappers Functions
CXXVII. Tidy Functions
CXXVIII. Tokenizer Functions
CXXIX. ODBC Functions (Unified)
CXXX. URL Functions
CXXXI. Variable Handling Functions
CXXXII. vpopmail Functions
CXXXIII. W32api Functions
CXXXIV. WDDX Functions
CXXXV. xattr Functions
CXXXVI. xdiff Functions
CXXXVII. XML Parser Functions
CXXXIX. XSL functions
CXL. XSLT Functions
CXLI. YAZ Functions
CXLII. Zip File Functions (Read Only Access)
CXLIII. Zlib Compression Functions
VII. PHP API: Interfaces for extension writers
44. Streams API for PHP Extension Authors
VIII. FAQ: Frequently Asked Questions
45. General Information
46. Mailing lists
47. Obtaining PHP
48. Database issues
49. Installation
50. Build Problems
51. Using PHP
52. PHP and HTML
53. PHP and COM
54. PHP and other languages
55. Migrating from PHP 2 to PHP 3
56. Migrating from PHP 3 to PHP 4
57. Migrating from PHP 4 to PHP 5
58. Miscellaneous Questions
IX. Appendixes
A. History of PHP and related projects
B. Migrating from PHP 4 to PHP 5
C. Migrating from PHP 3 to PHP 4
D. Migrating from PHP/FI 2 to PHP 3
E. Debugging PHP
F. Extending PHP 3
G. Configure options
H. php.ini directives
I. List of Function Aliases
J. List of Reserved Words
K. List of Resource Types
L. List of Supported Protocols/Wrappers
M. List of Available Filters
N. List of Supported Socket Transports
O. PHP type comparison tables
P. List of Parser Tokens
Q. About the manual
R. Open Publication License
S. Function Index
T. Missing Stuff