PHP Manual

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

2006-08-12


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. 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. Gettext
XLIX. GMP Functions
L. gnupg Functions
LI. Net_Gopher
LII. hash Functions
LIII. HTTP
LIV. Hyperwave Functions
LV. Hyperwave API Functions
LVI. IBM DB2, Cloudscape and Apache Derby Functions
LVII. ICAP Functions [deprecated]
LVIII. iconv Functions
LIX. ID3 Functions
LX. IIS Administration Functions
LXI. Image Functions
LXII. IMAP, POP3 and NNTP Functions
LXIII. Informix Functions
LXIV. Informix Functions (PDO_INFORMIX)
LXV. Ingres II Functions
LXVI. IRC Gateway Functions
LXVII. PHP / Java Integration
LXVIII. JSON Functions
LXIX. KADM5
LXX. LDAP Functions
LXXI. libxml Functions
LXXII. Lotus Notes Functions
LXXIII. LZF Functions
LXXIV. Mail Functions
LXXV. mailparse Functions
LXXVI. Mathematical Functions
LXXVII. MaxDB PHP Extension
LXXVIII. MCAL Functions
LXXIX. Mcrypt Encryption Functions
LXXX. MCVE (Monetra) Payment Functions
LXXXI. Memcache Functions
LXXXII. Mhash Functions
LXXXIII. Mimetype Functions
LXXXIV. Ming functions for Flash
LXXXV. Miscellaneous Functions
LXXXVI. mnoGoSearch Functions
LXXXVII. Microsoft SQL Server Functions
LXXXVIII. Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
LXXXIX. Mohawk Software Session Handler Functions
XC. mSQL Functions
XCI. Multibyte String Functions
XCII. muscat Functions
XCIII. MySQL Functions
XCIV. MySQL Functions (PDO_MYSQL)
XCV. MySQL Improved Extension
XCVI. Ncurses Terminal Screen Control Functions
XCVII. Network Functions
XCVIII. Newt Functions
XCIX. NSAPI-specific Functions
C. Object Aggregation/Composition Functions
CI. Object property and method call overloading
CII. Oracle Functions
CIII. ODBC Functions (Unified)
CIV. ODBC and DB2 Functions (PDO_ODBC)
CV. oggvorbis
CVI. OpenAL Audio Bindings
CVII. OpenSSL Functions
CVIII. Oracle Functions [deprecated]
CIX. Oracle Functions (PDO_OCI)
CX. Output Control Functions
CXI. Ovrimos SQL Functions
CXII. Paradox File Access
CXIII. Parsekit Functions
CXIV. Process Control Functions
CXV. Regular Expression Functions (Perl-Compatible)
CXVI. PDF Functions
CXVII. PDO Functions
CXVIII. PHP Options&Information
CXIX. POSIX Functions
CXX. Regular Expression Functions (POSIX Extended)
CXXI. PostgreSQL Functions
CXXII. PostgreSQL Functions (PDO_PGSQL)
CXXIII. Printer Functions
CXXIV. Program Execution Functions
CXXV. PostScript document creation
CXXVI. Pspell Functions
CXXVII. qtdom Functions
CXXVIII. Radius
CXXIX. Rar Functions
CXXX. GNU Readline
CXXXI. GNU Recode Functions
CXXXII. RPM Header Reading Functions
CXXXIII. runkit Functions
CXXXIV. Satellite CORBA client extension [deprecated]
CXXXV. SDO Functions
CXXXVI. SDO XML Data Access Service Functions
CXXXVII. SDO Relational Data Access Service Functions
CXXXVIII. Semaphore, Shared Memory and IPC Functions
CXXXIX. SESAM Database Functions
CXL. PostgreSQL Session Save Handler
CXLI. Session Handling Functions
CXLII. Shared Memory Functions
CXLIII. SimpleXML functions
CXLIV. SNMP Functions
CXLV. SOAP Functions
CXLVI. Socket Functions
CXLVII. Standard PHP Library (SPL) Functions
CXLVIII. SQLite Functions
CXLIX. SQLite Functions (PDO_SQLITE)
CL. Secure Shell2 Functions
CLI. Statistics Functions
CLII. Stream Functions
CLIII. String Functions
CLIV. Shockwave Flash Functions
CLV. Sybase Functions
CLVI. TCP Wrappers Functions
CLVII. Tidy Functions
CLVIII. Tokenizer Functions
CLIX. Unicode Functions
CLX. URL Functions
CLXI. Variable Handling Functions
CLXII. Verisign Payflow Pro Functions
CLXIII. vpopmail Functions
CLXIV. W32api Functions
CLXV. WDDX Functions
CLXVI. win32ps Functions
CLXVII. win32service Functions
CLXVIII. xattr Functions
CLXIX. xdiff Functions
CLXX. XML Parser Functions
CLXXI. XML-RPC Functions
CLXXII. XMLReader functions
CLXXIII. xmlwriter Functions
CLXXIV. XSL functions
CLXXV. XSLT Functions
CLXXVI. YAZ Functions
CLXXVII. YP/NIS Functions
CLXXVIII. Zip File Functions
CLXXIX. 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. TSRM API
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