PHP Programming

Introduction

Setup and Installation

Note: Before contributing, check out the discussion page. How to write your examples.

Learning the Language

The Basics

This section is about things that are important for any type of PHP development. Useful for a PHP programmer of any level.
  1. Beginning with "Hello World!"
  2. Nuts and Bolts
  3. Commenting and Style
  4. Comparison operators
  5. Arrays
  6. Control structures
    1. The if Structure
    2. The switch Structure
    3. The while Loop
    4. The do while Loop
    5. The for Loop
    6. The foreach Loop
  7. Functions
  8. PHP Include Files
  9. Files
  10. Mailing
  11. Cookies
  12. Sessions
  13. Databases
    1. MySQL
    2. PostgreSQL
    3. PHP Data Objects
    4. Neo4j
    5. DBAL
  14. Integration Methods (HTML Forms, etc.)
  15. Regular expressions

Advanced PHP

Advanced PHP includes high level programming and PHP techniques designed to make PHP even more useful and powerful.

Data Structures

  1. Data Structures

Object Oriented Programming (OOP)

  1. Classes
  2. Special Methods
  3. Overriding and Overloading
  4. Inheritance
  5. SSH Class

Caching

  1. Caching

Templating

  1. Why Templating
  2. Templates
  3. Smarty templating system
  4. Flat Frog
  5. XML
  6. XSL

Libraries

  1. PHP PEAR
  2. PHP Manual Function Reference
  3. PHP 5 Functions

Frameworks

CakePHP CodeIgniter Drupal Kohana
Laravel Nette Qcodo Silverstripe
Solar Symfony Yii Zend

Security

  1. Configuration: Register Globals
  2. SQL Injection Attacks
  3. Building a secure user login system
  4. Cross Site Scripting Attacks (XSS)
  5. Secure HTTP headers
  6. Encryption

See also:

Command-Line Interface (CLI)

  1. PHP CLI
  2. PHP-GTK
  3. Daemonization

Appendices