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 Mac OS X
5. Installation on Unix systems
6. Installation on Windows systems
7. Problems?
8. Runtime Configuration
III. Language Reference
9. Basic syntax
10. Types
11. Variables
12. Constants
13. Expressions
14. Operators
15. Control Structures
16. Functions
17. Classes and Objects (PHP 4)
18. Classes and Objects (PHP 5)
19. References Explained
IV. Security
20. Introduction
21. General considerations
22. Installed as CGI binary
23. Installed as an Apache module
24. Filesystem Security
25. Database Security
26. Error Reporting
27. Using Register Globals
28. User Submitted Data
29. Hiding PHP
30. Keeping Current
V. Features
31. HTTP authentication with PHP
32. Cookies
33. Dealing with XForms
34. Handling file uploads
35. Using remote files
36. Connection handling
37. Persistent Database Connections
38. Safe Mode
39. Using PHP from the command line
VI. 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 [deprecated]
VIII. COM and .Net (Windows)
IX. Classkit Functions
X. Class/Object Functions
XI. ClibPDF Functions
XII. Crack Functions
XIII. CURL, Client URL Library Functions
XIV. Cybercash Payment 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 [deprecated]
XXI. dbx Functions
XXII. DB++ Functions
XXIII. Direct IO Functions
XXIV. Directory Functions
XXV. DOM Functions
XXVI. DOM XML Functions
XXVII. .NET Functions
XXVIII. Error Handling and Logging Functions
XXIX. Exif Functions
XXX. File Alteration Monitor Functions
XXXI. FrontBase Functions
XXXII. filePro Functions
XXXIII. Filesystem Functions
XXXIV. Forms Data Format Functions
XXXV. FriBiDi Functions
XXXVI. FTP Functions
XXXVII. Function Handling Functions
XXXVIII. Gettext
XXXIX. GMP Functions
XL. HTTP Functions
XLI. Hyperwave Functions
XLII. Hyperwave API Functions
XLIII. iconv Functions
XLIV. Image Functions
XLV. IMAP, POP3 and NNTP Functions
XLVI. Informix Functions
XLVII. Firebird/InterBase Functions
XLVIII. ID3 Functions
XLIX. Ingres II Functions
L. IRC Gateway Functions
LI. PHP / Java Integration
LII. LDAP Functions
LIII. LZF Functions
LIV. Mail Functions
LV. mailparse Functions
LVI. Mathematical Functions
LVII. Multibyte String Functions
LVIII. MCAL Functions
LIX. Mcrypt Encryption Functions
LX. MCVE Payment Functions
LXI. Memcache Functions
LXII. Mhash Functions
LXIII. Mimetype Functions
LXIV. Microsoft SQL Server Functions
LXV. Ming functions for Flash
LXVI. Miscellaneous Functions
LXVII. mnoGoSearch Functions
LXVIII. mSQL Functions
LXIX. MySQL Functions
LXX. Improved MySQL Extension
LXXI. Mohawk Software Session Handler Functions
LXXII. muscat Functions
LXXIII. Network Functions
LXXIV. Ncurses Terminal Screen Control Functions
LXXV. Lotus Notes Functions
LXXVI. NSAPI-specific Functions
LXXVII. ODBC Functions (Unified)
LXXVIII. Object Aggregation/Composition Functions
LXXIX. Oracle 8 functions
LXXX. OpenSSL Functions
LXXXI. Oracle Functions
LXXXII. Ovrimos SQL Functions
LXXXIII. Output Control Functions
LXXXIV. Object property and method call overloading
LXXXV. Parsekit Functions
LXXXVI. PDF functions
LXXXVII. Verisign Payflow Pro Functions
LXXXVIII. PHP Options&Information
XC. PostgreSQL Functions
XCI. Process Control Functions
XCII. Program Execution Functions
XCIII. Printer Functions
XCIV. Pspell Functions
XCV. GNU Readline
XCVI. GNU Recode Functions
XCVII. Regular Expression Functions (Perl-Compatible)
XCVIII. qtdom Functions
XCIX. Regular Expression Functions (POSIX Extended)
C. Semaphore, Shared Memory and IPC Functions
CI. SESAM Database Functions
CII. Session Handling Functions
CIII. Shared Memory Functions
CIV. SimpleXML functions
CV. SOAP Functions
CVII. Shockwave Flash Functions
CVIII. SNMP Functions
CIX. Socket Functions
CX. Standard PHP Library (SPL) Functions
CXI. Stream Functions
CXII. String Functions
CXIII. Sybase Functions
CXIV. TCP Wrappers Functions
CXV. Tidy Functions
CXVI. Tokenizer Functions
CXVII. URL Functions
CXVIII. Variable Functions
CXIX. vpopmail Functions
CXX. W32api Functions
CXXI. WDDX Functions
CXXII. xattr Functions
CXXIII. XML Parser Functions
CXXIV. XML-RPC Functions
CXXV. xdiff Functions
CXXVI. XSL functions
CXXVII. XSLT Functions
CXXVIII. YAZ Functions
CXXIX. YP/NIS Functions
CXXX. Zip File Functions (Read Only Access)
CXXXI. Zlib Compression Functions
40. Overview
41. Extension Possibilities
42. Source Layout
43. PHP's Automatic Build System
44. Creating Extensions
45. Using Extensions
46. Troubleshooting
47. Source Discussion
48. Accepting Arguments
49. Creating Variables
50. Duplicating Variable Contents: The Copy Constructor
51. Returning Values
52. Printing Information
53. Startup and Shutdown Functions
54. Calling User Functions
55. Initialization File Support
56. Where to Go from Here
57. Reference: Some Configuration Macros
58. API Macros
VIII. PHP API: Interfaces for extension writers
59. Streams API for PHP Extension Authors
IX. FAQ: Frequently Asked Questions
60. General Information
61. Mailing lists
62. Obtaining PHP
63. Database issues
64. Installation
65. Build Problems
66. Using PHP
67. PHP and HTML
68. PHP and COM
69. PHP and other languages
70. Migrating from PHP 2 to PHP 3
71. Migrating from PHP 3 to PHP 4
72. Migrating from PHP 4 to PHP 5
73. Miscellaneous Questions
X. 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. List of core 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