PHP Manual

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


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. .NET Functions
II. Apache-specific Functions
III. Alternative PHP Cache
IV. Advanced PHP debugger
V. Array Functions
VI. Aspell functions [deprecated]
VII. BCMath Arbitrary Precision Mathematics Functions
VIII. PHP bytecode Compiler
IX. Bzip2 Compression Functions
X. Calendar Functions
XI. CCVS API Functions [deprecated]
XII. Class/Object Functions
XIII. Classkit Functions
XIV. ClibPDF Functions
XV. COM and .Net (Windows)
XVI. Crack Functions
XVII. Character Type Functions
XVIII. CURL, Client URL Library Functions
XIX. Cybercash Payment Functions
XX. Credit Mutuel CyberMUT functions
XXI. Cyrus IMAP administration Functions
XXII. Date and Time Functions
XXIII. DB++ Functions
XXIV. Database (dbm-style) Abstraction Layer Functions
XXV. dBase Functions
XXVI. DBM Functions [deprecated]
XXVII. dbx Functions
XXVIII. Direct IO Functions
XXIX. Directory Functions
XXX. DOM Functions
XXXI. DOM XML Functions
XXXII. enchant Functions
XXXIII. Error Handling and Logging Functions
XXXIV. Exif Functions
XXXV. Expect Functions
XXXVI. File Alteration Monitor Functions
XXXVII. Forms Data Format Functions
XXXVIII. Fileinfo Functions
XXXIX. filePro Functions
XL. Filesystem Functions
XLI. Filter Functions
XLII. Firebird/InterBase Functions
XLIII. Firebird/Interbase Functions (PDO_FIREBIRD)
XLIV. FriBiDi Functions
XLV. FrontBase Functions
XLVI. FTP Functions
XLVII. Function Handling Functions
XLVIII. GeoIP Functions
XLIX. Gettext
L. GMP Functions
LI. gnupg Functions
LII. Net_Gopher
LIII. hash Functions
LV. Hyperwave Functions
LVI. Hyperwave API Functions
LVII. IBM DB2, Cloudscape and Apache Derby Functions
LVIII. ICAP Functions [deprecated]
LIX. iconv Functions
LX. ID3 Functions
LXI. IIS Administration Functions
LXII. Image Functions
LXIII. IMAP, POP3 and NNTP Functions
LXIV. Informix Functions
LXV. Informix Functions (PDO_INFORMIX)
LXVI. Ingres II Functions
LXVII. IRC Gateway Functions
LXVIII. PHP / Java Integration
LXIX. JSON Functions
LXXI. LDAP Functions
LXXII. libxml Functions
LXXIII. Lotus Notes Functions
LXXIV. LZF Functions
LXXV. Mail Functions
LXXVI. mailparse Functions
LXXVII. Mathematical Functions
LXXVIII. MaxDB PHP Extension
LXXIX. MCAL Functions
LXXX. Mcrypt Encryption Functions
LXXXI. MCVE (Monetra) Payment Functions
LXXXII. Memcache Functions
LXXXIII. Mhash Functions
LXXXIV. Mimetype Functions
LXXXV. Ming functions for Flash
LXXXVI. Miscellaneous Functions
LXXXVII. mnoGoSearch Functions
LXXXVIII. Microsoft SQL Server Functions
LXXXIX. Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
XC. Mohawk Software Session Handler Functions
XCI. mSQL Functions
XCII. Multibyte String Functions
XCIII. muscat Functions
XCIV. MySQL Functions
XCV. MySQL Functions (PDO_MYSQL)
XCVI. MySQL Improved Extension
XCVII. Ncurses Terminal Screen Control Functions
XCVIII. Network Functions
XCIX. Newt Functions
C. NSAPI-specific Functions
CI. Object Aggregation/Composition Functions
CII. Object property and method call overloading
CIII. Oracle Functions
CIV. ODBC Functions (Unified)
CV. ODBC and DB2 Functions (PDO_ODBC)
CVI. oggvorbis
CVII. OpenAL Audio Bindings
CVIII. OpenSSL Functions
CIX. Oracle Functions [deprecated]
CX. Oracle Functions (PDO_OCI)
CXI. Output Control Functions
CXII. Ovrimos SQL Functions
CXIII. Paradox File Access
CXIV. Parsekit Functions
CXV. Process Control Functions
CXVI. Regular Expression Functions (Perl-Compatible)
CXVII. PDF Functions
CXVIII. PDO Functions
CXIX. PHP Options&Information
CXX. POSIX Functions
CXXI. Regular Expression Functions (POSIX Extended)
CXXII. PostgreSQL Functions
CXXIII. PostgreSQL Functions (PDO_PGSQL)
CXXIV. Printer Functions
CXXV. Program Execution Functions
CXXVI. PostScript document creation
CXXVII. Pspell Functions
CXXVIII. qtdom Functions
CXXIX. Radius
CXXX. Rar Functions
CXXXI. GNU Readline
CXXXII. GNU Recode Functions
CXXXIII. RPM Header Reading Functions
CXXXIV. runkit Functions
CXXXV. Satellite CORBA client extension [deprecated]
CXXXVI. SDO Functions
CXXXVII. SDO XML Data Access Service Functions
CXXXVIII. SDO Relational Data Access Service Functions
CXXXIX. Semaphore, Shared Memory and IPC Functions
CXL. SESAM Database Functions
CXLI. PostgreSQL Session Save Handler
CXLII. Session Handling Functions
CXLIII. Shared Memory Functions
CXLIV. SimpleXML functions
CXLV. SNMP Functions
CXLVI. SOAP Functions
CXLVII. Socket Functions
CXLVIII. Standard PHP Library (SPL) Functions
CXLIX. SQLite Functions
CL. SQLite Functions (PDO_SQLITE)
CLI. Secure Shell2 Functions
CLII. Statistics Functions
CLIII. Stream Functions
CLIV. String Functions
CLV. Shockwave Flash Functions
CLVI. Sybase Functions
CLVII. TCP Wrappers Functions
CLVIII. Tidy Functions
CLIX. Tokenizer Functions
CLX. Unicode Functions
CLXI. URL Functions
CLXII. Variable Handling Functions
CLXIII. Verisign Payflow Pro Functions
CLXIV. vpopmail Functions
CLXV. W32api Functions
CLXVI. WDDX Functions
CLXVII. win32ps Functions
CLXVIII. win32service Functions
CLXIX. xattr Functions
CLXX. xdiff Functions
CLXXI. XML Parser Functions
CLXXIII. XMLReader functions
CLXXIV. xmlwriter Functions
CLXXV. XSL functions
CLXXVI. XSLT Functions
CLXXVII. YAZ Functions
CLXXIX. Zip File Functions
CLXXX. Zlib Compression Functions
VII. PHP and Zend Engine Internals
44. Streams API for PHP Extension Authors
45. PDO Driver How-To
46. Zend API: Hacking the Core of PHP
48. Extending PHP 3
VIII. FAQ: Frequently Asked Questions
49. General Information
50. Mailing lists
51. Obtaining PHP
52. Database issues
53. Installation FAQ
54. Build Problems
55. Using PHP
56. PHP and HTML
57. PHP and COM
58. PHP and other languages
59. Migrating from PHP 2 to PHP 3
60. Migrating from PHP 3 to PHP 4
61. Migrating from PHP 4 to PHP 5
62. 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. Configure options
G. php.ini directives
H. List of Supported Timezones
I. Extension Categorization
J. List of Function Aliases
K. List of Reserved Words
L. List of Resource Types
M. List of Supported Protocols/Wrappers
N. List of Available Filters
O. List of Supported Socket Transports
P. PHP type comparison tables
Q. List of Parser Tokens
R. Userland Naming Guide
S. About the manual
T. Open Publication License
U. Function Index