• phpmanual
    • I. Getting started
      • Introduction
      • A simple tutorial
    • II. Installation and Configuration
      • General Installation Considerations
      • Installation on Unix systems
      • Installation on Mac OS X
      • Installation on Windows systems
      • Installation of PECL extensions
      • Problems?
      • Runtime Configuration
    • IV. Security
      • Introduction
      • General considerations
      • Installed as CGI binary
        • Possible attacks
        • Case 1: only public files served
        • Case 2: using --enable-force-cgi-redirect
        • Case 3: setting doc_root or user_dir
        • Case 4: PHP parser outside of web tree
      • Installed as an Apache module
      • Filesystem Security
      • Database Security
        • Designing Databases
        • Connecting to Database
        • Encrypted Storage Model
        • SQL Injection
      • Error Reporting
      • Using Register Globals
      • User Submitted Data
      • Magic Quotes
        • What are Magic Quotes
        • Why use Magic Quotes
        • Why not to use Magic Quotes
        • Disabling Magic Quotes
      • Hiding PHP
      • Keeping Current
    • V. Features
      • HTTP authentication with PHP
      • Cookies
      • Sessions
      • Dealing with XForms
      • Handling file uploads
      • Using remote files
      • Connection handling
      • Persistent Database Connections
      • Safe Mode
      • Using PHP from the command line
    • VI. Function Reference
      • .NET Functions
      • Apache-specific Functions
      • Alternative PHP Cache
      • Advanced PHP debugger
      • Array Functions
      • Aspell functions [deprecated]
      • BCMath Arbitrary Precision Mathematics Functions
      • PHP bytecode Compiler
      • Bzip2 Compression Functions
      • Calendar Functions
      • CCVS API Functions [deprecated]
      • Class/Object Functions
      • Classkit Functions
      • ClibPDF Functions
      • COM and .Net (Windows)
      • Crack Functions
      • Character Type Functions
      • CURL, Client URL Library Functions
      • Cybercash Payment Functions
      • Credit Mutuel CyberMUT functions
      • Cyrus IMAP administration Functions
      • Date and Time Functions
      • DB++ Functions
      • Database (dbm-style) Abstraction Layer Functions
      • dBase Functions
    • III. Language Reference
      • Basic syntax
      • Types
        • Introduction
        • Booleans
        • Integers
        • Floating point numbers
        • Strings
        • Arrays
        • Objects
        • Resource
        • NULL
        • Pseudo-types used in this documentation
        • Type Juggling
      • Variables
        • Basics
        • Predefined variables
        • Variable scope
        • Variable variables
        • Variables from outside PHP
      • Constants
        • Syntax
        • Magic constants
      • Expressions
      • Operators
        • Operator Precedence
        • Arithmetic Operators
        • Assignment Operators
        • Bitwise Operators
        • Comparison Operators
        • Error Control Operators
        • Execution Operators
        • Incrementing/Decrementing Operators
        • Logical Operators
        • String Operators
        • Type Operators
      • Control Structures
        • If
        • else
        • elseif
        • Alternative syntax for control structures
        • while
        • do-while
        • for
        • foreach
        • break
        • continue
        • switch
        • declare
        • return
        • require
        • include
        • require_once
        • include_once
      • Functions
        • User-defined functions
        • Function arguments
        • Returning values
        • Variable functions
        • Internal (built-in) functions
      • Classes and Objects (PHP 4)
        • class
        • extends
        • Constructors
        • Scope Resolution Operator (::)
        • parent
        • Serializing objects - objects in sessions
        • The magic functions __sleep and __wakeup
        • References inside the constructor
        • Comparing objects
      • Classes and Objects (PHP 5)
        • Introduction
        • The basics
        • Autoloading Objects
        • Constructors and Destructors
        • Visibility
        • Scope Resolution Operator (::)
        • Static Keyword
        • Class Constants
        • Class Abstraction
        • Object Interfaces
        • Overloading
        • Object Iteration
        • Patterns
        • Magic Methods
        • Final Keyword
        • Object cloning
        • Comparing objects
        • Reflection
        • Type Hinting
      • Exceptions
      • References Explained
        • What References Are
        • What References Do
        • What References Are Not
        • Passing by Reference
        • Returning References
        • Unsetting References
        • Spotting References
    • Preface