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

07-09-2002


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