# PHP Manual

Mehdi Achour
Friedhelm Betz
Antony Dovgal
Nuno Lopes
Philip Olson
Georg Richter
Damien Seguy
Jakub Vrana
以及其它

## 编辑

Gabor Hojtsy

## 编辑

穆少磊
肖盛文
宋琪
李达
黄啸宇
王远之
陈伯乐
崔岩
刘铭
肖理达
周皓
孙虑

2005-04-28

版权 © 1997-2005 PHP 文档小组

目录
序文
  作者和贡献者
I. 入门指引
  1. 简介
  2. 简明教程
II. 安装与配置
  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. 语言参考
  10. 基本语法
  11. 类型
  12. 变量
  13. 常量
  14. 表达式
  15. 运算符
  16. 流程控制
  17. 函数
  18. 类与对象(PHP 4)
  19. 类与对象(PHP 5)
  20. Exceptions
  21. 引用的解释
IV. 安全
  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. 特点
  34. 用 PHP 进行 HTTP 认证
  35. Cookies
  36. Sessions
  37. Dealing with XForms
  38. 文件上传处理
  39. 使用远程文件
  40. 连接处理
  41. 数据库永久连接
  42. 安全模式
  43. PHP 的命令行模式
VI. 函数参考
  I. Apache 函数库
  II. Advanced PHP debugger
  III. 数组函数库
  IV. Aspell 函数库 [已废弃]
  V. BCMath 任意精度数学函数库
  VI. PHP bytecode Compiler
  VII. Bzip2 压缩函数库
  VIII. 日历函数库
  IX. CCVS API Functions [deprecated]
  X. Classkit Functions
  XI. 类／对象函数库
  XII. Windows 的 COM 支持函数库
  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. 时间日期函数库
  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. 目录函数库
  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. 文件系统函数库
  XXXVIII. FriBiDi Functions
  XXXIX. FTP 函数库
  XL. Function Handling Functions
  XLI. Gettext
  XLII. GMP Functions
  XLIII. HTTP 相关函数库
  XLIV. Hyperwave Functions
  XLV. Hyperwave API Functions
  XLVI. Firebird/InterBase Functions
  XLVII. IBM DB2, Cloudscape and Apache Derby Functions
  XLVIII. ICAP Functions [deprecated]
  XLIX. iconv Functions
  L. ID3 Functions
  LI. Informix Functions
  LII. IIS Administration Functions
  LIII. 图像函数库
  LIV. IMAP, POP3 and NNTP Functions
  LV. PHP Options&Information
  LVI. Ingres II Functions
  LVII. IRC Gateway Functions
  LVIII. PHP / Java Integration
  LIX. LDAP Functions
  LX. libxml Functions
  LXI. LZF Functions
  LXII. Mail Functions
  LXIII. mailparse Functions
  LXIV. 数学函数库
  LXV. MaxDB PHP Extension
  LXVI. Multibyte String Functions
  LXVII. MCAL Functions
  LXVIII. Mcrypt Encryption Functions
  LXIX. MCVE Payment Functions
  LXX. Memcache Functions
  LXXI. Mhash Functions
  LXXII. Mimetype Functions
  LXXIII. Ming functions for Flash
  LXXIV. Miscellaneous Functions
  LXXV. mnoGoSearch Functions
  LXXVI. Mohawk Software Session Handler Functions
  LXXVII. mSQL Functions
  LXXVIII. Microsoft SQL Server Functions
  LXXIX. muscat Functions
  LXXX. MySQL 函数库
  LXXXI. Improved MySQL Extension
  LXXXII. Ncurses Terminal Screen Control Functions
  LXXXIII. Network Functions
  LXXXIV. YP/NIS Functions
  LXXXV. Lotus Notes Functions
  LXXXVI. NSAPI-specific Functions
  LXXXVII. Object Aggregation/Composition Functions
  LXXXVIII. Oracle 8 函数库
  LXXXIX. OpenAL Audio Bindings
  XC. OpenSSL Functions
  XCI. Oracle 函数库
  XCII. 输出控制函数
  XCIII. Object property and method call overloading
  XCIV. Ovrimos SQL Functions
  XCV. Parsekit Functions
  XCVI. Process Control Functions
  XCVII. 正则表达式函数库（Perl 兼容）
  XCVIII. PDF functions
  XCIX. PDO Functions
  C. Verisign Payflow Pro Functions
  CI. PostgreSQL 数据库函数库
  CII. POSIX Functions
  CIII. Printer Functions
  CIV. Pspell Functions
  CV. qtdom Functions
  CVI. Rar Functions
  CVII. GNU Readline
  CVIII. GNU Recode Functions
  CIX. 正则表达式函数库（POSIX 扩展）
  CX. Semaphore, Shared Memory and IPC Functions
  CXI. SESAM Database Functions
  CXII. Session Handling Functions
  CXIII. Shared Memory Functions
  CXIV. SimpleXML functions
  CXV. SNMP 函数库
  CXVI. SOAP Functions
  CXVII. Socket Functions
  CXVIII. Standard PHP Library (SPL) Functions
  CXIX. SQLite Functions
  CXX. Secure Shell2 Functions
  CXXI. Stream Functions
  CXXII. 字符串处理函数库
  CXXIII. Shockwave Flash Functions
  CXXIV. Sybase Functions
  CXXV. TCP Wrappers Functions
  CXXVI. Tidy Functions
  CXXVII. Tokenizer Functions
  CXXVIII. ODBC Functions (Unified)
  CXXIX. URL 函数库
  CXXX. 变量函数库
  CXXXI. vpopmail Functions
  CXXXII. W32api 函数库
  CXXXIII. WDDX Functions
  CXXXIV. xattr Functions
  CXXXV. xdiff Functions
  CXXXVI. XML 语法解析函数库
  CXXXVII. XML-RPC 函数库
  CXXXVIII. XSL functions
  CXXXIX. XSLT Functions
  CXL. YAZ Functions
  CXLI. Zip File Functions (Read Only Access)
  CXLII. 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: 扩展开发接口
  63. Streams API for PHP Extension Authors
IX. FAQ: 常见问题
  64. 一般信息
  65. 邮件列表
  66. 获取 PHP
  67. 数据库问题
  68. 安装
  69. 编译问题
  70. 使用 PHP
  71. PHP 和 HTML
  72. PHP 和 COM
  73. PHP 和其它语言
  74. 从 PHP/FI 2 移植到 PHP 3
  75. 从 PHP 3 移植到 PHP 4
  76. Migrating from PHP 4 to PHP 5
  77. 杂类问题
X. 附录
  A. PHP 及其相关工程的历史
  B. Migrating from PHP 4 to PHP 5
  C. 从 PHP 3 移植到 PHP 4
  D. 从 PHP/FI 2 移植到 PHP 3
  E. PHP 的调试
  F. 扩展 PHP 3
  G. 配置选项
  H. `php.ini` 配置选项
  I. 函数别名列表
  J. 保留字列表
  K. 资源类型列表
  L. 支持的协议／封装协议列表
  M. List of Available Filters
  N. 所支持的套接字传输器（Socket Transports）列表
  O. PHP 类型及比较符表
  P. 解析器代号列表
  Q. 关于本手册
  R. Open Publication License
  S. 函数索引
  T. 补充说明

|  | 前进
|  | 序文