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

2005-12-23


Table of Contents
Preface
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. Error Handling and Logging Functions
XXXIII. Exif Functions
XXXIV. Expect Functions
XXXV. File Alteration Monitor Functions
XXXVI. Forms Data Format Functions
XXXVII. filePro Functions
XXXVIII. Filesystem Functions
XXXIX. Firebird/InterBase Functions
XL. Firebird/Interbase Functions (PDO_FIREBIRD)
XLI. FriBiDi Functions
XLII. FrontBase Functions
XLIII. FTP Functions
XLIV. Function Handling Functions
XLV. Gettext
XLVI. GMP Functions
XLVII. gnupg Functions
XLVIII. Net_Gopher
XLIX. hash Functions
L. HTTP Functions
LI. Hyperwave Functions
LII. Hyperwave API Functions
LIII. IBM DB2, Cloudscape and Apache Derby Functions
LIV. ICAP Functions [deprecated]
LV. iconv Functions
LVI. ID3 Functions
LVII. IIS Administration Functions
LVIII. Image Functions
LIX. IMAP, POP3 and NNTP Functions
LX. Informix Functions
LXI. Informix functions (PDO_INFORMIX)
LXII. Ingres II Functions
LXIII. IRC Gateway Functions
LXIV. PHP / Java Integration
LXV. KADM5
LXVI. LDAP Functions
LXVII. libxml Functions
LXVIII. Lotus Notes Functions
LXIX. LZF Functions
LXX. Mail Functions
LXXI. mailparse Functions
LXXII. Mathematical Functions
LXXIII. MaxDB PHP Extension
LXXIV. MCAL Functions
LXXV. Mcrypt Encryption Functions
LXXVI. MCVE (Monetra) Payment Functions
LXXVII. Memcache Functions
LXXVIII. Mhash Functions
LXXIX. Mimetype Functions
LXXX. Ming functions for Flash
LXXXI. Miscellaneous Functions
LXXXII. mnoGoSearch Functions
LXXXIII. Microsoft SQL Server Functions
LXXXIV. Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
LXXXV. Mohawk Software Session Handler Functions
LXXXVI. mSQL Functions
LXXXVII. Multibyte String Functions
LXXXVIII. muscat Functions
LXXXIX. MySQL Functions
XC. MySQL Functions (PDO_MYSQL)
XCI. MySQL Improved Extension
XCII. Ncurses Terminal Screen Control Functions
XCIII. Network Functions
XCIV. Newt Functions
XCV. NSAPI-specific Functions
XCVI. Object Aggregation/Composition Functions
XCVII. Object property and method call overloading
XCVIII. Oracle functions
XCIX. ODBC Functions (Unified)
C. ODBC and DB2 functions (PDO_ODBC)
CI. oggvorbis
CII. OpenAL Audio Bindings
CIII. OpenSSL Functions
CIV. Oracle Functions [deprecated]
CV. Oracle Functions (PDO_OCI)
CVI. Output Control Functions
CVII. Ovrimos SQL Functions
CVIII. Paradox File Access
CIX. Parsekit Functions
CX. Process Control Functions
CXI. Regular Expression Functions (Perl-Compatible)
CXII. PDF Functions
CXIII. PDO Functions
CXIV. PHP Options&Information
CXV. POSIX Functions
CXVI. Regular Expression Functions (POSIX Extended)
CXVII. PostgreSQL Functions
CXVIII. PostgreSQL Functions (PDO_PGSQL)
CXIX. Printer Functions
CXX. Program Execution Functions
CXXI. PostScript document creation
CXXII. Pspell Functions
CXXIII. qtdom Functions
CXXIV. Radius
CXXV. Rar Functions
CXXVI. GNU Readline
CXXVII. GNU Recode Functions
CXXVIII. RPM Header Reading Functions
CXXIX. runkit Functions
CXXX. Satellite CORBA client extension [deprecated]
CXXXI. SDO Functions
CXXXII. SDO XML Data Access Service Functions
CXXXIII. SDO Relational Data Access Service Functions
CXXXIV. Semaphore, Shared Memory and IPC Functions
CXXXV. SESAM Database Functions
CXXXVI. PostgreSQL Session Save Handler
CXXXVII. Session Handling Functions
CXXXVIII. Shared Memory Functions
CXXXIX. SimpleXML functions
CXL. SNMP Functions
CXLI. SOAP Functions
CXLII. Socket Functions
CXLIII. Standard PHP Library (SPL) Functions
CXLIV. SQLite Functions
CXLV. SQLite Functions (PDO_SQLITE)
CXLVI. Secure Shell2 Functions
CXLVII. Statistics Functions
CXLVIII. Stream Functions
CXLIX. String Functions
CL. Shockwave Flash Functions
CLI. Sybase Functions
CLII. TCP Wrappers Functions
CLIII. Tidy Functions
CLIV. Tokenizer Functions
CLV. Unicode Functions
CLVI. URL Functions
CLVII. Variable Handling Functions
CLVIII. Verisign Payflow Pro Functions
CLIX. vpopmail Functions
CLX. W32api Functions
CLXI. WDDX Functions
CLXII. win32ps Functions
CLXIII. win32service Functions
CLXIV. xattr Functions
CLXV. xdiff Functions
CLXVI. XML Parser Functions
CLXVII. XML-RPC Functions
CLXVIII. XMLReader functions
CLXIX. XSL functions
CLXX. XSLT Functions
CLXXI. YAZ Functions
CLXXII. YP/NIS Functions
CLXXIII. Zip File Functions (Read Only Access)
CLXXIV. 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
47. Extending PHP 3
VIII. FAQ: Frequently Asked Questions
48. General Information
49. Mailing lists
50. Obtaining PHP
51. Database issues
52. Installation FAQ
53. Build Problems
54. Using PHP
55. PHP and HTML
56. PHP and COM
57. PHP and other languages
58. Migrating from PHP 2 to PHP 3
59. Migrating from PHP 3 to PHP 4
60. Migrating from PHP 4 to PHP 5
61. 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. About the manual
S. Open Publication License
T. Function Index