PHP Manual

Stig Sæther Bakken
Alexander Aulbach
Egon Schmid
Jim Winstead
Lars Torben Wilson
Rasmus Lerdorf
Andrei Zmievski
Jouni Ahto

Edited by

Stig Sæther Bakken
Egon Schmid

09-06-2004


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