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

31-03-2005


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. 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
XXVIII. DOM XML 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. ICAP Functions [deprecated]
XLVIII. iconv Functions
XLIX. ID3 Functions
L. Informix Functions
LI. IIS Administration Functions
LII. Image Functions
LIII. IMAP, POP3 and NNTP Functions
LIV. PHP Options&Information
LV. Ingres II Functions
LVI. IRC Gateway Functions
LVII. PHP / Java Integration
LVIII. LDAP Functions
LIX. libxml Functions
LX. LZF Functions
LXI. Mail Functions
LXII. mailparse Functions
LXIII. Mathematical Functions
LXIV. MaxDB PHP Extension
LXV. Multibyte String Functions
LXVI. MCAL Functions
LXVII. Mcrypt Encryption Functions
LXVIII. MCVE Payment Functions
LXIX. Memcache Functions
LXX. Mhash Functions
LXXI. Mimetype Functions
LXXII. Ming functions for Flash
LXXIII. Miscellaneous Functions
LXXIV. mnoGoSearch Functions
LXXV. Mohawk Software Session Handler Functions
LXXVI. mSQL Functions
LXXVII. Microsoft SQL Server Functions
LXXVIII. muscat Functions
LXXIX. MySQL Functions
LXXX. Improved MySQL Extension
LXXXI. Ncurses Terminal Screen Control Functions
LXXXII. Network Functions
LXXXIII. YP/NIS Functions
LXXXIV. Lotus Notes Functions
LXXXV. NSAPI-specific Functions
LXXXVI. Object Aggregation/Composition Functions
LXXXVII. Oracle 8 functions
LXXXVIII. OpenAL Audio Bindings
LXXXIX. OpenSSL Functions
XC. Oracle Functions
XCI. Output Control Functions
XCII. Object property and method call overloading
XCIII. Ovrimos SQL Functions
XCIV. Parsekit Functions
XCV. Process Control Functions
XCVI. Regular Expression Functions (Perl-Compatible)
XCVII. PDF functions
XCVIII. PDO Functions
XCIX. Verisign Payflow Pro Functions
C. PostgreSQL Functions
CI. POSIX Functions
CII. Printer Functions
CIII. Pspell Functions
CIV. qtdom Functions
CV. Rar Functions
CVI. GNU Readline
CVII. GNU Recode Functions
CVIII. Regular Expression Functions (POSIX Extended)
CIX. Semaphore, Shared Memory and IPC Functions
CX. SESAM Database Functions
CXI. Session Handling Functions
CXII. Shared Memory Functions
CXIII. SimpleXML functions
CXIV. SNMP Functions
CXV. SOAP Functions
CXVI. Socket Functions
CXVII. Standard PHP Library (SPL) Functions
CXVIII. SQLite Functions
CXIX. Secure Shell2 Functions
CXX. Stream Functions
CXXI. String Functions
CXXII. Shockwave Flash Functions
CXXIII. Sybase Functions
CXXIV. TCP Wrappers Functions
CXXV. Tidy Functions
CXXVI. Tokenizer Functions
CXXVII. ODBC Functions (Unified)
CXXVIII. URL Functions
CXXIX. Variable Handling Functions
CXXX. vpopmail Functions
CXXXI. W32api Functions
CXXXII. WDDX Functions
CXXXIII. xattr Functions
CXXXIV. xdiff Functions
CXXXV. XML Parser Functions
CXXXVI. XML-RPC Functions
CXXXVII. XSL functions
CXXXVIII. XSLT Functions
CXXXIX. YAZ Functions
CXL. Zip File Functions (Read Only Access)
CXLI. Zlib Compression Functions
VII. Zend API
44. Overview
45. Extension Possibilities
46. Source Layout
47. PHP's Automatic Build System
48. Creating Extensions
49. Using Extensions
50. Troubleshooting
51. Source Discussion
52. Accepting Arguments
53. Creating Variables
54. Duplicating Variable Contents: The Copy Constructor
55. Returning Values
56. Printing Information
57. Startup and Shutdown Functions
58. Calling User Functions
59. Initialization File Support
60. Where to Go from Here
61. Reference: Some Configuration Macros
62. API Macros
VIII. PHP API: Interfaces for extension writers
63. Streams API for PHP Extension Authors
IX. FAQ: Frequently Asked Questions
64. General Information
65. Mailing lists
66. Obtaining PHP
67. Database issues
68. Installation
69. Build Problems
70. Using PHP
71. PHP and HTML
72. PHP and COM
73. PHP and other languages
74. Migrating from PHP 2 to PHP 3
75. Migrating from PHP 3 to PHP 4
76. Migrating from PHP 4 to PHP 5
77. 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. 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